Merge branch 'ldap' of github.com:Rulingcom/orbit into ldap
This commit is contained in:
commit
0d69403f4a
|
@ -1,7 +1,7 @@
|
|||
/*message*/
|
||||
|
||||
.error{
|
||||
color:red;
|
||||
color: #B94A48;
|
||||
}
|
||||
|
||||
.notice, .message{
|
||||
|
|
|
@ -10,7 +10,7 @@ class Asset
|
|||
|
||||
has_one :i18n_variable, :as => :language_value, :autosave => true, :dependent => :destroy
|
||||
|
||||
validates_presence_of :filename, :data
|
||||
validates_presence_of :filename, :data, :asset_category_id
|
||||
|
||||
belongs_to :asset_category
|
||||
belongs_to :assetable, polymorphic: true
|
||||
|
|
|
@ -9,7 +9,7 @@
|
|||
</div>
|
||||
<div class="modal-body form-horizontal">
|
||||
<div class="control-group">
|
||||
<label for="title" class="control-label"><%= t 'admin.title' %></label>
|
||||
<label for="title" class="control-label error"><%= t 'admin.title' %></label>
|
||||
<div class="controls">
|
||||
<%= f.fields_for :i18n_variable, (@asset.new_record? ? @asset.build_i18n_variable : @asset.i18n_variable) do |f| %>
|
||||
<% @site_valid_locales.each do |locale| %>
|
||||
|
@ -23,8 +23,8 @@
|
|||
<% end %>
|
||||
</div>
|
||||
</div>
|
||||
<div class="control-group">
|
||||
<label class="control-label"><%= f.label :category, t('admin.category') %></label>
|
||||
<div class="control-group error">
|
||||
<%= f.label :category, t('admin.category'), :class => "control-label" %>
|
||||
<div class="controls">
|
||||
<%= f.select :asset_category_id, @asset_categories.collect{|t| [ t.i18n_variable[I18n.locale], t.id ]}, {}, :class => "input-large" %>
|
||||
</div>
|
||||
|
@ -41,7 +41,7 @@
|
|||
</div>
|
||||
</div>
|
||||
<div class="control-group">
|
||||
<label class="control-label"><%= f.label :data, t('admin.data') %></label>
|
||||
<%= f.label :data, t('admin.data'), :class => "control-label" %>
|
||||
<div class="controls">
|
||||
<%= f.file_field :data, :class => 'upload' %>
|
||||
</div>
|
||||
|
|
Loading…
Reference in New Issue