* luci/libs/cbi: print a notice in empty tblsections
* luci/i18n: added new string to cbi translations
This commit is contained in:
parent
faed4aa7f1
commit
94a968e62f
3 changed files with 15 additions and 4 deletions
|
@ -2,4 +2,5 @@ cbi_add = "Add entry"
|
|||
cbi_del = "Remove entry"
|
||||
cbi_invalid = "Error: Invalid input value"
|
||||
cbi_addopt = "-- Additional Field --"
|
||||
cbi_optional = " (optional)"
|
||||
cbi_optional = " (optional)"
|
||||
cbi_sectempty = "This section contains no values yet"
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
cbi_add = "Eintrag hinzufügen"
|
||||
cbi_del = "Eintrag entfernen"
|
||||
cbi_invalid = "Error: Ungültige Eingabe"
|
||||
cbi_addopt = "-- Zusätzliches Feld --"
|
||||
cbi_addopt = "-- Zusätzliches Feld --"
|
||||
cbi_sectempty = "Diese Sektion enthält noch keine Einträge"
|
||||
|
|
|
@ -33,7 +33,10 @@ $Id$
|
|||
<th class="cbi-section-table-cell"> </th>
|
||||
<%- end -%>
|
||||
</tr>
|
||||
<%- for i, k in ipairs(self:cfgsections()) do
|
||||
<%- local isempty = true
|
||||
for i, k in ipairs(self:cfgsections()) do
|
||||
isempty = false
|
||||
|
||||
if not self.anonymous then
|
||||
-%>
|
||||
<tr class="cbi-section-table-title">
|
||||
|
@ -47,11 +50,17 @@ $Id$
|
|||
<%-+cbi/ucisection-%>
|
||||
<%- if self.addremove then -%>
|
||||
<td class="cbi-section-table-cell">
|
||||
<input type="submit" name="cbi.rts.<%=self.config%>.<%=k%>" value="X" />
|
||||
<input type="submit" name="cbi.rts.<%=self.config%>.<%=k%>" value="X" title="<%:delete%>" />
|
||||
</td>
|
||||
<%- end -%>
|
||||
</tr>
|
||||
<%- end -%>
|
||||
|
||||
<%- if isempty then -%>
|
||||
<tr class="cbi-section-table-row">
|
||||
<td colspan="<%=count%>"><em><%:cbi_sectempty%></em></td>
|
||||
</tr>
|
||||
<%- end -%>
|
||||
|
||||
<%- if self.addremove then -%>
|
||||
<tr class="cbi-section-table-row">
|
||||
|
|
Loading…
Reference in a new issue