Ver código fonte

Move the Save button right under the options.

It's nice for each Agent to have a good, detailed description, but
currently the Save button will be gone too far below when the
description is very long in height.
Akinori MUSHA 10 anos atrás
pai
commit
381a338c6c
1 arquivos alterados com 4 adições e 7 exclusões
  1. 4 7
      app/views/agents/_form.html.erb

+ 4 - 7
app/views/agents/_form.html.erb

@@ -86,6 +86,10 @@
               <%= Utils.jsonify((@agent.new_record? && @agent.options == {}) ? @agent.default_options : @agent.options) %>
             </textarea>
           </div>
+
+          <div class="form-group">
+            <%= f.submit "Save", :class => "btn btn-primary" %>
+          </div>
         </div>
       </div>
     </div>
@@ -106,11 +110,4 @@
       </div>
     </div>
   </div>
-
-  <div class='row'>
-    <div class="col-md-12">
-      <%= f.submit "Save", :class => "btn btn-primary" %>
-    </div>
-  </div>
-      
 <% end %>