|
6 | 6 | @import gitbucket.core.view.helpers._
|
7 | 7 | @import gitbucket.core.util.Directory._
|
8 | 8 | @main("New announce"){
|
9 |
| -@menu("announce"){ |
10 |
| -@information(info) |
11 |
| -<form action="@path/admin/announce" method="POST" validate="true"> |
12 |
| - @if(settings.useSMTP && settings.smtp.nonEmpty){ |
13 |
| - <div class="panel panel-default"> |
14 |
| - <div class="panel-heading strong">New announce</div> |
15 |
| - <div class="panel-body"> |
| 9 | + @menu("announce"){ |
| 10 | + @information(info) |
| 11 | + <form action="@path/admin/announce" method="POST" validate="true"> |
| 12 | + @if(settings.useSMTP && settings.smtp.nonEmpty){ |
| 13 | + <div class="panel panel-default"> |
| 14 | + <div class="panel-heading strong">New announce</div> |
| 15 | + <div class="panel-body"> |
16 | 16 | <fieldset>
|
17 |
| - <label><span class="strong">To</span></label> |
18 |
| - <input type="text" style="width: 635px;" name="to"/> |
19 |
| - <p class="muted">Enter a comma separated list of groupname the announce will be sent to, or the keyword 'ALL' to send to all users</p> |
| 17 | + <label><span class="strong">To</span></label> |
| 18 | + <input type="text" name="to" class="form-control"/> |
| 19 | + <p class="muted">Enter a comma separated list of groupname the announce will be sent to, or the keyword 'ALL' to send to all users</p> |
20 | 20 | </fieldset>
|
21 | 21 | <fieldset>
|
22 |
| - <label><span class="strong">Subject</span></label> |
23 |
| - <input type="text" style="width: 635px;" name="subject"/> |
| 22 | + <label><span class="strong">Subject</span></label> |
| 23 | + <input type="text" name="subject" class="form-control"/> |
24 | 24 | </fieldset>
|
25 | 25 | <label><span class="strong">Content</span></label>
|
26 | 26 | <fieldset>
|
27 |
| - <textarea style="width: 635px; height: 100px;" name="content"></textarea> |
| 27 | + <textarea style="height: 100px;" name="content" class="form-control"></textarea> |
28 | 28 | </fieldset>
|
| 29 | + </div> |
29 | 30 | </div>
|
30 |
| - </div> |
31 |
| - <fieldset> |
32 |
| - <input type="submit" class="btn btn-success" value="Send Announce"/> |
33 |
| - </fieldset> |
34 |
| - } else { |
35 |
| - <div class="box"> |
36 |
| - <p>SMTP settings are disabled, verify your setup.</p> |
37 |
| - </div> |
38 |
| - } |
39 |
| -</form> |
40 |
| -} |
| 31 | + <fieldset> |
| 32 | + <input type="submit" class="btn btn-success" value="Send Announce"/> |
| 33 | + </fieldset> |
| 34 | + } else { |
| 35 | + <div class='alert alert-danger'> |
| 36 | + SMTP settings are disabled, verify your setup. |
| 37 | + </div> |
| 38 | + } |
| 39 | + </form> |
| 40 | + } |
41 | 41 | }
|
0 commit comments