30 lines
1.1 KiB
Plaintext
30 lines
1.1 KiB
Plaintext
<form action="<%= admin_announcement_importanns_path %>" method="post" class="form-horizontal main-forms" enctype="multipart/form-data">
|
|
<%= hidden_field_tag :authenticity_token, form_authenticity_token %>
|
|
<div class="input-area">
|
|
<% if @module_app.categories.count > 0 %>
|
|
<div class="control-group">
|
|
<div class="controls">
|
|
<a href="<%= admin_announcement_excel_format_path(:format => "xlsx") %>">Download example sheet here.</a>
|
|
</div>
|
|
</div>
|
|
<div class="control-group">
|
|
<label for="import-anns" class="control-label muted">Upload :</label>
|
|
<div class="controls">
|
|
<input type="file" id="import-anns" name="import_file" />
|
|
<span class="help-block">Please create all the tags and categories before hand. Only excel file is allowed.</span>
|
|
</div>
|
|
</div>
|
|
<% else %>
|
|
<div class="control-group">
|
|
<div class="controls">
|
|
<h4>Please create atleast one category before importing.</h4>
|
|
</div>
|
|
</div>
|
|
<% end %>
|
|
</div>
|
|
<% if @module_app.categories.count > 0 %>
|
|
<div class="form-actions">
|
|
<input type="submit" value="Import" class="btn btn-primary">
|
|
</div>
|
|
<% end %>
|
|
</form> |