applications/luci-asterisk: some minor html cleanups
This commit is contained in:
parent
1a3d44865f
commit
65e41ec629
1 changed files with 66 additions and 66 deletions
|
@ -70,80 +70,80 @@ $Id$
|
||||||
|
|
||||||
<div class="cbi-map" id="cbi-asterisk">
|
<div class="cbi-map" id="cbi-asterisk">
|
||||||
<h2><a id="content" name="content">Outgoing Call Routing</a></h2>
|
<h2><a id="content" name="content">Outgoing Call Routing</a></h2>
|
||||||
<div class="cbi-map-descr"></div><!-- tblsection -->
|
<div class="cbi-map-descr">
|
||||||
<fieldset class="cbi-section" id="cbi-asterisk-sip">
|
|
||||||
<!--<legend>Dialplans</legend>-->
|
|
||||||
<div class="cbi-section-descr">
|
|
||||||
Here you can manage your dial plans which are used to route outgoing calls from your local extensions.
|
Here you can manage your dial plans which are used to route outgoing calls from your local extensions.
|
||||||
</div>
|
</div>
|
||||||
|
<!-- tblsection -->
|
||||||
|
<fieldset class="cbi-section" id="cbi-asterisk-sip">
|
||||||
|
<!--<legend>Dialplans</legend>-->
|
||||||
|
<div class="cbi-section-descr"></div>
|
||||||
|
|
||||||
<% for i, plan in pairs(ast.dialplan.plans()) do %>
|
<% for i, plan in pairs(ast.dialplan.plans()) do %>
|
||||||
<div class="cbi-section-node">
|
<div class="cbi-section-node">
|
||||||
<table class="cbi-section-table">
|
<table class="cbi-section-table">
|
||||||
<tr class="cbi-section-table-titles">
|
<tr class="cbi-section-table-titles">
|
||||||
<th style="text-align: left; padding: 3px" class="cbi-section-table-cell">
|
<th style="text-align: left; padding: 3px" class="cbi-section-table-cell">
|
||||||
<big>Dialplan <em><%=plan.name%></em></big>
|
<big>Dialplan <em><%=plan.name%></em></big>
|
||||||
</th>
|
</th>
|
||||||
<td>
|
<td>
|
||||||
<a href="<%=luci.dispatcher.build_url('admin', 'asterisk', 'dialplans')%>?delplan=<%=plan.name%>">
|
<a href="<%=luci.dispatcher.build_url('admin', 'asterisk', 'dialplans')%>?delplan=<%=plan.name%>">
|
||||||
<img style="border:none" alt="Remove this dialplan" title="Remove this dialplan" src="/luci-static/resources/cbi/remove.gif" />
|
<img style="border:none" alt="Remove this dialplan" title="Remove this dialplan" src="/luci-static/resources/cbi/remove.gif" />
|
||||||
</a>
|
</a>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
|
||||||
<!-- dialzones -->
|
<!-- dialzones -->
|
||||||
<% local zones_used = { } %>
|
<% local zones_used = { } %>
|
||||||
<% for i, zone in ipairs(plan.zones) do zones_used[zone.name] = true %>
|
<% for i, zone in ipairs(plan.zones) do zones_used[zone.name] = true %>
|
||||||
<tr class="cbi-section-table-row <%=rowstyle(i)%>">
|
<tr class="cbi-section-table-row <%=rowstyle(i)%>">
|
||||||
<td style="text-align: left; padding: 3px" class="cbi-section-table-cell">
|
<td style="text-align: left; padding: 3px" class="cbi-section-table-cell">
|
||||||
<strong>└ Dialzone <em><%=zone.name%></em></strong>
|
<strong>└ Dialzone <em><%=zone.name%></em></strong> (<%=zone.description%>)
|
||||||
<p style="padding-left: 1em; margin-bottom:0">
|
<p style="padding-left: 1em; margin-bottom:0">
|
||||||
Description: <%=zone.description%><br />
|
Lines:
|
||||||
Lines:
|
<%=ast.tools.hyperlinks(
|
||||||
<%=ast.tools.hyperlinks(
|
zone.trunks, function(v)
|
||||||
zone.trunks, function(v)
|
return luci.dispatcher.build_url("admin", "asterisk", "trunks", "%s") % v:lower()
|
||||||
return luci.dispatcher.build_url("admin", "asterisk", "trunks", "%s") % v:lower()
|
end
|
||||||
end
|
)%><br />
|
||||||
)%><br />
|
Matches:
|
||||||
Matches:
|
<%=format_matches(zone)%>
|
||||||
<%=format_matches(zone)%>
|
</p>
|
||||||
</p>
|
</td>
|
||||||
</td>
|
<td style="width:5%" class="cbi-value-field">
|
||||||
<td style="width:5%" class="cbi-value-field">
|
<a href="<%=luci.dispatcher.build_url('admin', 'asterisk', 'dialplans', 'out', zone.name)%>">
|
||||||
<a href="<%=luci.dispatcher.build_url('admin', 'asterisk', 'dialplans', 'out', zone.name)%>">
|
<img style="border:none" alt="Edit dialzone" title="Edit dialzone" src="/luci-static/resources/cbi/edit.gif" />
|
||||||
<img style="border:none" alt="Edit dialzone" title="Edit dialzone" src="/luci-static/resources/cbi/edit.gif" />
|
</a>
|
||||||
</a>
|
<a href="<%=luci.dispatcher.build_url('admin', 'asterisk', 'dialplans')%>?delzone.<%=plan.name%>=<%=zone.name%>">
|
||||||
<a href="<%=luci.dispatcher.build_url('admin', 'asterisk', 'dialplans')%>?delzone.<%=plan.name%>=<%=zone.name%>">
|
<img style="border:none" alt="Remove from this dialplan" title="Remove from this dialplan" src="/luci-static/resources/cbi/remove.gif" />
|
||||||
<img style="border:none" alt="Remove from this dialplan" title="Remove from this dialplan" src="/luci-static/resources/cbi/remove.gif" />
|
</a>
|
||||||
</a>
|
</td>
|
||||||
</td>
|
</tr>
|
||||||
</tr>
|
<% end %>
|
||||||
<% end %>
|
|
||||||
|
|
||||||
<tr class="cbi-section-table-row">
|
<tr class="cbi-section-table-row">
|
||||||
<td style="text-align: left; padding: 3px" class="cbi-section-table-cell" colspan="2">
|
<td style="text-align: left; padding: 3px" class="cbi-section-table-cell" colspan="2">
|
||||||
<hr style="margin-bottom:0.5em; border-width:0 0 1px 0" />
|
<hr style="margin-bottom:0.5em; border-width:0 0 1px 0" />
|
||||||
<select style="width:30%" name="addzone.<%=plan.name%>">
|
<select style="width:30%" name="addzone.<%=plan.name%>">
|
||||||
<option value="">-- Add dialzone --</option>
|
<option value="">-- Add dialzone --</option>
|
||||||
<% for _, zone in pairs(ast.dialzone.zones()) do %>
|
<% for _, zone in pairs(ast.dialzone.zones()) do %>
|
||||||
<% if not zones_used[zone.name] then %>
|
<% if not zones_used[zone.name] then %>
|
||||||
<option value="<%=zone.name%>"><%=zone.name%> (<%=zone.description%>)</option>
|
<option value="<%=zone.name%>"><%=zone.name%> (<%=zone.description%>)</option>
|
||||||
|
<% end %>
|
||||||
<% end %>
|
<% end %>
|
||||||
<% end %>
|
</select>
|
||||||
</select>
|
<input type="submit" class="cbi-button cbi-button-add" value=" » " title="Add Zone ..."/>
|
||||||
<input type="submit" class="cbi-button cbi-button-add" value=" » " title="Add Zone ..."/>
|
|
||||||
|
<a href="<%=luci.dispatcher.build_url('admin/asterisk/dialplans/zones')%>" class="cbi-title-ref">Manage dialzones</a>
|
||||||
<a href="<%=luci.dispatcher.build_url('admin/asterisk/dialplans/zones')%>" class="cbi-title-ref">Manage dialzones</a>
|
</td>
|
||||||
</td>
|
</tr>
|
||||||
</tr>
|
<!-- /dialzones -->
|
||||||
<!-- /dialzones -->
|
|
||||||
|
|
||||||
</table>
|
</table>
|
||||||
|
|
||||||
<div class="cbi-section-create cbi-tblsection-create"></div>
|
<div class="cbi-section-create cbi-tblsection-create"></div>
|
||||||
</div>
|
</div>
|
||||||
<br />
|
<br />
|
||||||
<% end %>
|
<% end %>
|
||||||
|
|
||||||
<div class="cbi-section-node">
|
<div class="cbi-section-node">
|
||||||
<div class="cbi-section-create cbi-tblsection-create" style="padding: 3px">
|
<div class="cbi-section-create cbi-tblsection-create" style="padding: 3px">
|
||||||
|
|
Loading…
Reference in a new issue