Skip to content

Commit

Permalink
Uniform buttons across all edit and xml partials, working cancel buttons
Browse files Browse the repository at this point in the history
  • Loading branch information
dgcliff committed Feb 28, 2024
1 parent c0186a8 commit fa2e03c
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2.5.8
2.5.9
4 changes: 3 additions & 1 deletion app/views/collections/edit.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,7 @@
= bootstrap_fields_for :collection do |c|
= c.text_field :title, value: @collection['title']
= c.text_area :description, rows: 10, value: @collection['description']
= f.button :submit, class: "btn btn-primary my-3"
.well.p-3.my-3.rounded-3
= f.button :submit, class: "btn btn-success"
= link_to "Cancel", collection_path(params[:id]), class: "btn btn-warning"

4 changes: 3 additions & 1 deletion app/views/communities/edit.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,6 @@
= bootstrap_fields_for :community do |c|
= c.text_field :title, value: @community['title']
= c.text_area :description, rows: 10, value: @community['description']
= f.button :submit, class: "btn btn-primary my-3"
.well.p-3.my-3.rounded-3
= f.button :submit, class: "btn btn-success"
= link_to "Cancel", community_path(params[:id]), class: "btn btn-warning"
2 changes: 1 addition & 1 deletion app/views/xml/editor.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -27,5 +27,5 @@
.well.p-3.my-3.rounded-3
%input#validate_button.btn.btn-primary{:name => "commit", :type => "submit", :value => "Validate + Preview", remote: true}/
%input#save_button.btn.btn-success{"data-disable-with" => "Please wait...", :name => "commit", :type => "submit", :value => "Save", :formaction => xml_update_path}/
%a.btn.btn-warning{"data-toggle" => "modal", :href => "#cancelEditModal"}
%a.btn.btn-warning{"data-toggle" => "modal", :href => public_send("#{@klass.downcase}_path", @resource['id'])}
Cancel

0 comments on commit fa2e03c

Please sign in to comment.