summaryrefslogtreecommitdiffstats
path: root/modules-available
diff options
context:
space:
mode:
authorChristian Hofmaier2017-09-08 17:13:58 +0200
committerChristian Hofmaier2017-09-08 17:13:58 +0200
commit79000c1786d019ad12a1ca8468478c2362c3a2b9 (patch)
tree14abd236230006c9bdad9f62ceabaf93525b080d /modules-available
parentMerge remote-tracking branch 'origin/master' into permission-manager (diff)
downloadslx-admin-79000c1786d019ad12a1ca8468478c2362c3a2b9.tar.gz
slx-admin-79000c1786d019ad12a1ca8468478c2362c3a2b9.tar.xz
slx-admin-79000c1786d019ad12a1ca8468478c2362c3a2b9.zip
[news] fixed inconsistencies
Diffstat (limited to 'modules-available')
-rw-r--r--modules-available/news/config.json3
-rw-r--r--modules-available/news/style.css4
-rw-r--r--modules-available/news/templates/page-news.html24
3 files changed, 19 insertions, 12 deletions
diff --git a/modules-available/news/config.json b/modules-available/news/config.json
index 706412d0..e076ea5c 100644
--- a/modules-available/news/config.json
+++ b/modules-available/news/config.json
@@ -1,3 +1,4 @@
{
- "category":"main.content"
+ "category":"main.content",
+ "dependencies": [ "js_stupidtable" ]
}
diff --git a/modules-available/news/style.css b/modules-available/news/style.css
index c11567ec..fc4bccab 100644
--- a/modules-available/news/style.css
+++ b/modules-available/news/style.css
@@ -4,3 +4,7 @@
background: none;
border: none;
}
+
+.bottom-margin-50 {
+ margin-bottom: 50px;
+}
diff --git a/modules-available/news/templates/page-news.html b/modules-available/news/templates/page-news.html
index 192635ea..d3cb26b9 100644
--- a/modules-available/news/templates/page-news.html
+++ b/modules-available/news/templates/page-news.html
@@ -17,9 +17,9 @@
<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>
+ <button class="btn btn-primary btn-sm sn-btn pull-right" name="news-type" value="news" type="submit">{{lang_save}}</button>
<input type="hidden" name="token" value="{{token}}">
+ <p>{{lang_latestUpdate}}: {{latestDate}}</p>
</form>
<br/>
<div class="panel panel-default">
@@ -29,12 +29,12 @@
<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 data-sort="date">{{lang_date}}</th>
+ <th data-sort="string">{{lang_title}}</th>
+ <th data-sort="string">{{lang_content}}</th>
<th></th>
</tr>
</thead>
@@ -59,14 +59,16 @@
</div>
</div>
<div role="tabpanel" class="tab-pane {{#editHelp}}active{{/editHelp}}" id="help">
- <form action="?do=News&amp;action=save" method="post">
+ <form class="bottom-margin-50" action="?do=News&amp;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 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>
+ <button class="btn btn-primary btn-sm sn-btn pull-right" name="news-type" value="help" type="submit">{{lang_save}}</button>
<input type="hidden" name="token" value="{{token}}">
+ <p> </p>
</form>
+ <br/>
<div class="panel panel-default">
<div class="panel-heading">
{{lang_oldHelp}}
@@ -74,11 +76,11 @@
<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 data-sort="date">{{lang_date}}</th>
+ <th data-sort="string">{{lang_content}}</th>
<th></th>
</tr>
</thead>