diff options
author | Simon Rettberg | 2016-06-24 14:24:04 +0200 |
---|---|---|
committer | Simon Rettberg | 2016-06-24 14:24:04 +0200 |
commit | ce3a398d1d8f465e5681e8664caa8abc3475b9c0 (patch) | |
tree | 9ed25fe4cde44091dd65367fe5cec64a88d3f7d3 /modules-available/news/templates/page-news.html | |
parent | [exams] Indent location by tree depth; fix ordering of locations in vis.js (diff) | |
parent | display locationid=0 as locationid=* (diff) | |
download | slx-admin-ce3a398d1d8f465e5681e8664caa8abc3475b9c0.tar.gz slx-admin-ce3a398d1d8f465e5681e8664caa8abc3475b9c0.tar.xz slx-admin-ce3a398d1d8f465e5681e8664caa8abc3475b9c0.zip |
Merge branch 'modularization' of dnbd3:openslx-ng/slx-admin into modularization
Diffstat (limited to 'modules-available/news/templates/page-news.html')
-rw-r--r-- | modules-available/news/templates/page-news.html | 130 |
1 files changed, 89 insertions, 41 deletions
diff --git a/modules-available/news/templates/page-news.html b/modules-available/news/templates/page-news.html index 8e400498..79720df4 100644 --- a/modules-available/news/templates/page-news.html +++ b/modules-available/news/templates/page-news.html @@ -1,10 +1,14 @@ -<div class="panel panel-default"> - <div class="panel-heading"> - {{lang_editNews}} - </div> - <div class="panel-body"> - <p>{{lang_newsIntro}}</p> + +<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> +</ul> + +<div class="tab-content"> + <div role="tabpanel" class="tab-pane {{^editHelp}}active{{/editHelp}}" id="news" style="padding:5px"> <form action="?do=News&action=save" method="post"> + <p>{{lang_newsIntro}}</p> <div class="form-group"> <label for="news-title-id">{{lang_title}}</label> <input type="text" name="news-title" id ="news-title-id" class="form-control" placeholder="{{welcome}}" value="{{latestTitle}}"> @@ -14,44 +18,88 @@ <textarea name="news-content" id ="news-content-id" class="form-control" rows="5" cols="30" placeholder="">{{latestContent}}</textarea> </div> <p>{{lang_latestUpdate}}: {{latestDate}}</p> - <button class="btn btn-primary btn-sm" type="submit">{{lang_save}}</button> + <button class="btn btn-primary btn-sm" name="news-type" value="news" type="submit">{{lang_save}}</button> <input type="hidden" name="token" value="{{token}}"> </form> + <br/> + <div class="panel panel-default"> + <div class="panel-heading"> + {{lang_newsOld}} + </div> + <div class="panel-body"> + <div class="table-responsive"> + <form method="post" action="?do=News&action=delete"> + <table class="table table-stripped table-condensed"> + <thead> + <tr> + <th>{{lang_date}}</th> + <th>{{lang_title}}</th> + <th>{{lang_content}}</th> + <th></th> + </tr> + </thead> + <tbody> + {{#list}} + <tr {{#active}}class="active"{{/active}}> + <td class="text-left nowrap">{{date}}</td> + <td class="slx-ellipsis">{{title}}</td> + <td class="slx-ellipsis">{{content}}</td> + <td> + <a class="btn btn-primary btn-xs" href="?do=news&newsid={{newsid}}&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> + </tr> + {{/list}} + </tbody> + </table> + <input type="hidden" name="token" value="{{token}}"> + </form> + </div> + </div> + </div> </div> -</div> - -<div class="panel panel-default"> - <div class="panel-heading"> - {{lang_newsOld}} - </div> - <div class="panel-body"> - <div class="table-responsive"> - <form method="post" action="?do=News&action=delete"> - <input type="hidden" name="token" value="{{token}}"> - <table class="table table-stripped table-condensed"> - <thead> - <tr> - <th>{{lang_date}}</th> - <th>{{lang_title}}</th> - <th>{{lang_content}}</th> - <th></th> - </tr> - </thead> - <tbody> - {{#list}} - <tr {{#active}}class="active"{{/active}}> - <td class="text-left nowrap">{{date}}</td> - <td class="slx-ellipsis">{{title}}</td> - <td class="slx-ellipsis">{{content}}</td> - <td> - <a class="btn btn-primary btn-xs" href="?do=news&newsid={{newsid}}&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> - </tr> - {{/list}} - </tbody> - </table> - </form> + <div role="tabpanel" class="tab-pane {{#editHelp}}active{{/editHelp}}" id="help"> + <form action="?do=News&action=save" method="post"> + <div class="form-group"> + <label for="news-content-id">{{lang_content}}</label> + <textarea name="help-content" id ="help-content-id" class="form-control" rows="5" cols="30" placeholder="">{{latestHelp}}</textarea> + </div> + <button class="btn btn-primary btn-sm" name="news-type" value="help" type="submit">{{lang_save}}</button> + <input type="hidden" name="token" value="{{token}}"> + </form> + <div class="panel panel-default"> + <div class="panel-heading"> + {{lang_oldHelp}} + </div> + <div class="panel-body"> + <div class="table-responsive"> + <form method="post" action="?do=News&action=delete&editHelp=true"> + <table class="table table-stripped table-condensed"> + <thead> + <tr> + <th>{{lang_date}}</th> + <th>{{lang_content}}</th> + <th></th> + </tr> + </thead> + <tbody> + {{#listHelp}} + <tr {{#active}}class="active"{{/active}}> + <td class="text-left nowrap">{{date}}</td> + <td class="slx-ellipsis">{{content}}</td> + <td> + <a class="btn btn-primary btn-xs" href="?do=news&newsid={{newsid}}&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> + </tr> + {{/listHelp}} + </tbody> + </table> + <input type="hidden" name="token" value="{{token}}"> + </form> + </div> + </div> </div> </div> </div> + |