summaryrefslogtreecommitdiffstats
path: root/modules-available/news/templates/page-news.html
diff options
context:
space:
mode:
Diffstat (limited to 'modules-available/news/templates/page-news.html')
-rw-r--r--modules-available/news/templates/page-news.html65
1 files changed, 42 insertions, 23 deletions
diff --git a/modules-available/news/templates/page-news.html b/modules-available/news/templates/page-news.html
index 192635ea..6293b62d 100644
--- a/modules-available/news/templates/page-news.html
+++ b/modules-available/news/templates/page-news.html
@@ -1,5 +1,5 @@
-
<h1>{{lang_vmChooser_title}}</h1>
+
<ul class="nav nav-tabs" role="tablist">
<li role="presentation" class="{{^editHelp}}active{{/editHelp}}"><a href="#news" role="tab" data-toggle="tab">{{lang_editNews}}</a></li>
<li role="presentation" class="{{#editHelp}}active{{/editHelp}}" ><a href="#help" role="tab" data-toggle="tab">{{lang_editHelp}}</a></li>
@@ -17,9 +17,16 @@
<label for="news-content-id">{{lang_content}}</label>
<textarea name="news-content" id ="news-content-id" class="form-control summernote" rows="5" cols="30" placeholder="">{{latestContent}}</textarea>
</div>
- <p>{{lang_latestUpdate}}: {{latestDate}}</p>
- <button class="btn btn-primary btn-sm sn-btn" name="news-type" value="news" type="submit">{{lang_save}}</button>
- <input type="hidden" name="token" value="{{token}}">
+ <div class="row">
+ <div class="text-left col-md-6">
+ <p>{{lang_latestUpdate}}: {{latestDate}}</p>
+ </div>
+ <div class="text-right col-md-6">
+ <button {{^allowedNewsSave}}disabled{{/allowedNewsSave}} class="btn btn-primary sn-btn" name="news-type" value="news" type="submit"><span class="glyphicon glyphicon-floppy-disk"></span> {{lang_save}}</button>
+ <input type="hidden" name="token" value="{{token}}">
+ </div>
+ </div>
+
</form>
<br/>
<div class="panel panel-default">
@@ -29,24 +36,28 @@
<div class="panel-body">
<div class="table-responsive">
<form method="post" action="?do=News&amp;action=delete">
- <table class="table table-stripped table-condensed">
+ <table class="table table-stripped table-condensed stupidtable">
<thead>
<tr>
- <th>{{lang_date}}</th>
- <th>{{lang_title}}</th>
- <th>{{lang_content}}</th>
- <th></th>
+ <th data-sort="int">{{lang_date}}</th>
+ <th data-sort="string">{{lang_title}}</th>
+ <th data-sort="string">{{lang_content}}</th>
+ <th class="text-center">{{lang_show}}</th>
+ <th class="text-center">{{lang_delete}}</th>
</tr>
</thead>
<tbody>
{{#list}}
<tr {{#active}}class="active"{{/active}}>
- <td class="text-left text-nowrap">{{date}}</td>
+ <td class="text-left text-nowrap" data-sort-value={{dateline}}>{{date}}</td>
<td><table class="slx-ellipsis"><tr><td>{{title}}</td></tr></table></td>
<td><table class="slx-ellipsis"><tr><td>{{content}}</td></tr></table></td>
- <td class="text-nowrap">
- <a class="btn btn-primary btn-xs" href="?do=news&amp;newsid={{newsid}}&amp;action=show"><span class="glyphicon glyphicon-share-alt"></span> {{lang_show}}</a>
- <button class="btn btn-danger btn-xs" type="submit" name="newsid" value="{{newsid}}"><span class="glyphicon glyphicon-remove"></span> {{lang_delete}}</button>
+ <td class="text-center">
+ <a class="btn btn-primary btn-xs" href="?do=news&amp;newsid={{newsid}}&amp;action=show"><span class="glyphicon glyphicon-share-alt"></span></a>
+ </td>
+ <td class="text-center">
+ <input type="hidden" name="news-type" value="news">
+ <button {{^allowedNewsDelete}}disabled{{/allowedNewsDelete}} class="btn btn-danger btn-xs" type="submit" name="newsid" value="{{newsid}}"><span class="glyphicon glyphicon-trash"></span></button>
</td>
</tr>
{{/list}}
@@ -61,12 +72,16 @@
<div role="tabpanel" class="tab-pane {{#editHelp}}active{{/editHelp}}" id="help">
<form action="?do=News&amp;action=save" method="post">
<div class="form-group">
+ <br/>
<label for="news-content-id">{{lang_content}}</label>
<textarea name="help-content" id="help-content-id" class="form-control summernote" style="min-height:400px" placeholder="">{{latestHelp}}</textarea>
</div>
- <button class="btn btn-primary btn-sm sn-btn" name="news-type" value="help" type="submit">{{lang_save}}</button>
- <input type="hidden" name="token" value="{{token}}">
+ <div class="text-right">
+ <button {{^allowedHelpSave}}disabled{{/allowedHelpSave}} class="btn btn-primary sn-btn" name="news-type" value="help" type="submit"><span class="glyphicon glyphicon-floppy-disk"></span> {{lang_save}}</button>
+ <input type="hidden" name="token" value="{{token}}">
+ </div>
</form>
+ <br/>
<div class="panel panel-default">
<div class="panel-heading">
{{lang_oldHelp}}
@@ -74,22 +89,26 @@
<div class="panel-body">
<div class="table-responsive">
<form method="post" action="?do=News&amp;action=delete&editHelp=true">
- <table class="table table-stripped table-condensed">
+ <table class="table table-stripped table-condensed stupidtable">
<thead>
<tr>
- <th>{{lang_date}}</th>
- <th>{{lang_content}}</th>
- <th></th>
+ <th data-sort="int">{{lang_date}}</th>
+ <th data-sort="string">{{lang_content}}</th>
+ <th class="text-center">{{lang_show}}</th>
+ <th class="text-center">{{lang_delete}}</th>
</tr>
</thead>
<tbody>
{{#listHelp}}
<tr {{#active}}class="active"{{/active}}>
- <td class="text-left text-nowrap">{{date}}</td>
+ <td class="text-left text-nowrap" data-sort-value={{dateline}}>{{date}}</td>
<td><table class="slx-ellipsis"><tr><td>{{content}}</td></tr></table></td>
- <td class="text-nowrap">
- <a class="btn btn-primary btn-xs" href="?do=news&amp;newsid={{newsid}}&amp;action=show"><span class="glyphicon glyphicon-share-alt"></span> {{lang_show}}</a>
- <button class="btn btn-danger btn-xs" type="submit" name="newsid" value="{{newsid}}"><span class="glyphicon glyphicon-remove"></span> {{lang_delete}}</button>
+ <td class="text-center">
+ <a class="btn btn-primary btn-xs" href="?do=news&amp;newsid={{newsid}}&amp;action=show"><span class="glyphicon glyphicon-share-alt"></span></a>
+ </td>
+ <td class="text-center">
+ <input type="hidden" name="news-type" value="help">
+ <button {{^allowedHelpDelete}}disabled{{/allowedHelpDelete}} class="btn btn-danger btn-xs" type="submit" name="newsid" value="{{newsid}}"><span class="glyphicon glyphicon-trash"></span></button>
</td>
</tr>
{{/listHelp}}