Mercurial > zeropaste
annotate app/views/pastes/new.html.erb @ 456:caac9bc885b4
More font size
author | nanaya <me@nanaya.pro> |
---|---|
date | Tue, 14 Nov 2017 22:49:16 +0900 |
parents | b2991317d4d7 |
children | 68231013b01b |
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 | |
424 | 17 <div class="form-group <%= error_class f.object, :key %> form-group--narrow"> |
18 <%= f.label :key, t(".deletion_key") %> | |
434 | 19 <%= f.text_field :key, :autocomplete => "off", :class => "form-control" %> |
424 | 20 </div> |
402 | 21 |
424 | 22 <div class="form-group"> |
23 <label><%= t(".privacy.label") %></label> | |
379 | 24 |
424 | 25 <div class="radio-container"> |
26 <% paste_privacy_options.each do |label, value| %> | |
27 <div class="radio"> | |
28 <label> | |
29 <%= f.radio_button :is_private, value %> | |
30 <%= t(".privacy.#{label}") %> | |
31 </label> | |
32 </div> | |
33 <% end %> | |
379 | 34 </div> |
424 | 35 </div> |
417
080dd141898c
Add support for explicit highlighter languages
nanaya <me@myconan.net>
parents:
410
diff
changeset
|
36 |
424 | 37 <div class="form-group form-group--narrow"> |
38 <%= f.label :language %> | |
417
080dd141898c
Add support for explicit highlighter languages
nanaya <me@myconan.net>
parents:
410
diff
changeset
|
39 |
424 | 40 <%= f.select :language, [], { :prompt => t(".language_none") }, :class => "form-control" %> |
41 </div> | |
379 | 42 |
424 | 43 <div class="form-group"> |
44 <%= f.button :class => "btn btn-primary" %> | |
403 | 45 |
424 | 46 <%= link_to t(".clear"), "#", :class => "btn btn-danger js-paste-clear" %> |
47 </div> | |
2 | 48 <% end %> |
402 | 49 |
409 | 50 <div class="modal fade js-paste-preview-md-modal" tabindex="-1" role="dialog"> |
402 | 51 <div class="modal-dialog" role="document"> |
52 <div class="modal-content"> | |
53 <div class="modal-body js-paste-preview-md-box"> | |
54 </div> | |
55 <div class="modal-footer"> | |
56 <button type="button" class="btn btn-default" data-dismiss="modal"> | |
408 | 57 <%= t("buttons.close") %> |
402 | 58 </button> |
59 </div> | |
60 </div> | |
61 </div> | |
62 </div> |