app/views/phcscriptcdnpro/scriptcdn/scripturls/_formpatch.html.erb in phcscriptcdnpro-1.3.0 vs app/views/phcscriptcdnpro/scriptcdn/scripturls/_formpatch.html.erb in phcscriptcdnpro-1.3.1
- old
+ new
@@ -1,22 +1,22 @@
<%= form_for([@scriptcdn_scripturl.scriptversion, @scriptcdn_scripturl], url: scriptcdn_scriptversion_scripturl_path, method: :patch) do |f| %>
<%= render 'phcnotifi/validations', :object => @scriptcdn_scripturl %>
- <div class="field">
- <label><%= f.label :scrpturlphc, "Script URL (AWS)" %></label>
- <%= f.text_field :scrpturlphc, class: "form-control" %>
+ <div class="form-group field_with_error">
+ <%= f.label :scrpturlphc, "Script URL" %>
+ <%= f.text_field :scrpturlphc, class: "form-control", placeholder: "Script URL (AWS)" %>
</div>
- <div class="field">
- <label><%= f.label :scrpturltype, "Script Type" %></label>
- <%= f.select :scrpturltype, [['CSS','css'],['JS','js'],['font','Font']], class: "form-control" %>
+ <div class="form-group field_with_error">
+ <%= f.label :scrpturltype, "Script Type" %>
+ <%= f.select :scrpturltype, [['CSS','css'],['JS','js'],['font','Font']], {}, {class: "form-control"} %>
</div>
- <div class="form-group">
- <label><%= f.label :scriptversion_id, "Script Version" %></label>
+ <div class="form-group field_with_error">
+ <%= f.label :scriptversion_id, "Script Version" %>
<%= collection_select(:scriptcdn_scripturl, :scriptversion_id, Phcscriptcdnpro::Scriptcdn::Scriptversion.order('scrptversion'), :id, :scrptversion, {}, {class: "form-control"}) %>
</div>
<div class="actions">
- <%= f.submit "Submit", class: "btn btn-primary btn-sm"%>
+ <%= f.submit "Submit", class: "btn blue-hoki" %>
</div>
<% end %>