forked from saurabh/orbit4-5
81 lines
2.9 KiB
Plaintext
81 lines
2.9 KiB
Plaintext
|
<% content_for :page_specific_css do %>
|
||
|
<%= stylesheet_link_tag "lib/main-forms" %>
|
||
|
<%= stylesheet_link_tag "lib/fileupload" %>
|
||
|
<%= stylesheet_link_tag "lib/main-list" %>
|
||
|
<% end %>
|
||
|
<% content_for :page_specific_javascript do %>
|
||
|
<%= javascript_include_tag "lib/bootstrap-fileupload" %>
|
||
|
<%= javascript_include_tag "lib/file-type" %>
|
||
|
<%= javascript_include_tag "lib/module-area" %>
|
||
|
<% end %>
|
||
|
<div class="input-area">
|
||
|
|
||
|
<!-- Module Tabs -->
|
||
|
<ul class="nav nav-pills module-nav">
|
||
|
<li class="active"><a href="#basic" data-toggle="tab"><%= t(:basic) %></a></li>
|
||
|
</ul>
|
||
|
<!-- Module -->
|
||
|
<div class="tab-content module-area">
|
||
|
|
||
|
<!-- Basic Module -->
|
||
|
<div class="tab-pane fade in active" id="basic">
|
||
|
<!-- group banner image -->
|
||
|
<div class="control-group">
|
||
|
<label class="control-label muted"><%= t(:image) %></label>
|
||
|
<div class="controls">
|
||
|
<div class="fileupload fileupload-new clearfix <%= 'fileupload-edit' if @grouppost.image.file %>" data-provides="fileupload">
|
||
|
<div class="fileupload-new thumbnail pull-left">
|
||
|
<% if @grouppost.image.file %>
|
||
|
<%= image_tag @grouppost.image %>
|
||
|
<% else %>
|
||
|
<img src="http://www.placehold.it/50x50/EFEFEF/AAAAAA" />
|
||
|
<% end %>
|
||
|
</div>
|
||
|
<div class="fileupload-preview fileupload-exists thumbnail pull-left"></div>
|
||
|
<span class="btn btn-file">
|
||
|
<span class="fileupload-new"><%= t(:select_image) %></span>
|
||
|
<span class="fileupload-exists"><%= t(:change) %></span>
|
||
|
<%= f.file_field :image %>
|
||
|
</span>
|
||
|
<a href="#" class="btn fileupload-exists" data-dismiss="fileupload"><%= t(:cancel) %></a>
|
||
|
<div class="controls" data-toggle="buttons-checkbox">
|
||
|
<label class="checkbox inline btn btn-danger fileupload-remove">
|
||
|
<%= f.check_box :remove_image %><%= t(:remove) %>
|
||
|
</label>
|
||
|
</div>
|
||
|
</div>
|
||
|
</div>
|
||
|
</div>
|
||
|
</div>
|
||
|
</div>
|
||
|
|
||
|
|
||
|
<!-- Language -->
|
||
|
<div class="tab-content language-area">
|
||
|
|
||
|
<!-- Title-->
|
||
|
<div class="control-group input-title">
|
||
|
<label class="control-label muted"><%= t(:title) %></label>
|
||
|
<div class="controls">
|
||
|
<%= f.text_field :title, class: "input-block-level", placeholder: t(:title), value: (@grouppost.title rescue nil) %>
|
||
|
</div>
|
||
|
</div>
|
||
|
|
||
|
<!-- Sub Title -->
|
||
|
<div class="control-group input-subtitle">
|
||
|
<label class="control-label muted"><%= t(:content) %></label>
|
||
|
<div class="controls">
|
||
|
<div class="textarea">
|
||
|
<%= f.cktext_area :content, rows: 2, class: "input-block-level", value: (@grouppost.content rescue nil) %>
|
||
|
</div>
|
||
|
</div>
|
||
|
</div>
|
||
|
|
||
|
</div>
|
||
|
</div>
|
||
|
<!-- Form Actions -->
|
||
|
|
||
|
<div class="form-actions">
|
||
|
<%= f.submit t('submit'), class: 'btn btn-primary' %>
|
||
|
<%= link_to t('cancel'), admin_groups_path, :class=>"btn" %>
|
||
|
</div>
|