Mercurial > zeropaste
annotate app/views/pastes/new.html.erb @ 412:634366b67312
Add extra padding so the links aren't stuck to bottom.
author | nanaya <me@myconan.net> |
---|---|
date | Mon, 07 Sep 2015 21:54:39 +0900 |
parents | a2f8e5c80769 |
children | 080dd141898c |
rev | line source |
---|---|
398 | 1 <% provide :title, t(".title") %> |
402 | 2 |
398 | 3 <%= form_for @paste do |f| %> |
379 | 4 <%= render "shared/filter_spam" %> |
398 | 5 |
6 <div class="form-group <%= error_class f.object, :paste %>"> | |
7 <%= f.text_area :paste, :autofocus => true, :class => "form-control paste-paste js-paste-paste", :rows => 20 %> | |
2 | 8 </div> |
189
b4b7a29b70f6
Initial work for paste deletion.
Edho Arief <edho@myconan.net>
parents:
56
diff
changeset
|
9 |
402 | 10 |
11 <div class="row"><div class="col-xs-12"> | |
12 <%= link_to t(".preview_md"), "#", | |
13 :class => "btn btn-default js-paste-preview-md pull-right" | |
14 %> | |
403 | 15 </div></div> |
16 | |
17 <div class="row"> | |
18 <div class="form-group col-sm-3 <%= error_class f.object, :key %>"> | |
19 <%= f.label :key, t(".deletion_key") %> | |
20 <%= f.text_field :key, :class => "form-control" %> | |
21 </div> | |
402 | 22 </div> |
23 | |
403 | 24 <div class="form-group"> |
25 <label><%= t(".privacy.label") %></label> | |
379 | 26 |
403 | 27 <div class="radio-container"> |
28 <% paste_privacy_options.each do |label, value| %> | |
29 <div class="radio"> | |
30 <label> | |
31 <%= f.radio_button :is_private, value %> | |
32 <%= t(".privacy.#{label}") %> | |
33 </label> | |
34 </div> | |
35 <% end %> | |
379 | 36 </div> |
403 | 37 </div> |
379 | 38 |
403 | 39 <div class="form-group"> |
40 <%= f.button :class => "btn btn-primary" %> | |
41 | |
42 <%= link_to t(".clear"), "#", :class => "btn btn-danger js-paste-clear" %> | |
410 | 43 </div> |
2 | 44 <% end %> |
402 | 45 |
409 | 46 <div class="modal fade js-paste-preview-md-modal" tabindex="-1" role="dialog"> |
402 | 47 <div class="modal-dialog" role="document"> |
48 <div class="modal-content"> | |
49 <div class="modal-body js-paste-preview-md-box"> | |
50 </div> | |
51 <div class="modal-footer"> | |
52 <button type="button" class="btn btn-default" data-dismiss="modal"> | |
408 | 53 <%= t("buttons.close") %> |
402 | 54 </button> |
55 </div> | |
56 </div> | |
57 </div> | |
58 </div> |