modules/admin-full, modules/freifunk, modules/niu, libs/web, applications/luci-upnp: tune input class attributes

This commit is contained in:
Jo-Philipp Wich 2011-09-22 13:25:48 +00:00
parent edff83040d
commit b360dbc6dc
9 changed files with 16 additions and 16 deletions

View file

@ -35,7 +35,7 @@
tr.insertCell(-1).innerHTML = st[i].intport;
tr.insertCell(-1).innerHTML = String.format(
'<input class="cbi-input-remove" type="button" value="<%:Delete Redirect%>" onclick="upnp_delete_fwd(%d)" />',
'<input class="cbi-button cbi-input-remove" type="button" value="<%:Delete Redirect%>" onclick="upnp_delete_fwd(%d)" />',
st[i].num
);
}

View file

@ -1,6 +1,6 @@
<%+cbi/valueheader%>
<% if self:cfgvalue(section) ~= false then %>
<input class="cbi-input-<%=self.inputstyle or "button" %>" type="submit"<%= attr("name", cbid) .. attr("id", cbid) .. attr("value", self.inputtitle or self.title)%> />
<input class="cbi-button cbi-input-<%=self.inputstyle or "button" %>" type="submit"<%= attr("name", cbid) .. attr("id", cbid) .. attr("value", self.inputtitle or self.title)%> />
<% else %>
-
<% end %>

View file

@ -7,7 +7,7 @@
<% if s then %>
<%:Uploaded File%> (<%=t.byte_format(s.size)%>)
<input type="hidden"<%= attr("value", v) .. attr("name", cbid) .. attr("id", cbid) %> />
<input class="cbi-input-image" type="image" value="<%:Replace entry%>" name="cbi.rlf.<%=section .. "." .. self.option%>" alt="<%:Replace entry%>" title="<%:Replace entry%>" src="<%=resource%>/cbi/reload.gif" />
<input class="cbi-button cbi-input-image" type="image" value="<%:Replace entry%>" name="cbi.rlf.<%=section .. "." .. self.option%>" alt="<%:Replace entry%>" title="<%:Replace entry%>" src="<%=resource%>/cbi/reload.gif" />
<% else %>
<input class="cbi-input-file" type="file"<%= attr("name", cbid) .. attr("id", cbid) %> />
<% end %>

View file

@ -129,7 +129,7 @@ $Id$
</form>
<form class="inline" action="<%=REQUEST_URI%>" method="get">
<input type="hidden" name="device" value="<%=utl.pcdata(dev)%>" />
<input class="cbi-input-find" type="submit" value="<%:Repeat scan%>" />
<input class="cbi-button cbi-input-find" type="submit" value="<%:Repeat scan%>" />
</form>
</div>

View file

@ -34,7 +34,7 @@ $Id$
<input type="file" size="30" name="archive" />
</div>
<div>
<input type="submit" class="cbi-input-apply" value="<%:Restore backup%>" />
<input type="submit" class="cbi-button cbi-input-apply" value="<%:Restore backup%>" />
</div>
</form>
<%+footer%>
<%+footer%>

View file

@ -51,7 +51,7 @@ local filter = { }
<label class="cbi-value-title"><%:Download and install package%>:</label>
<div class="cbi-value-field">
<input type="text" name="url" size="30" value="" />
<input class="cbi-input-save" type="submit" name="submit" value="<%:OK%>" />
<input class="cbi-button cbi-input-save" type="submit" name="submit" value="<%:OK%>" />
</div>
</div>
@ -59,7 +59,7 @@ local filter = { }
<label class="cbi-value-title"><%:Filter%>:</label>
<div class="cbi-value-field">
<input type="text" name="query" size="20" value="<%=pcdata(query)%>" />
<input type="submit" class="cbi-input-find" name="search" value="<%:Find package%>" />
<input type="submit" class="cbi-button cbi-input-find" name="search" value="<%:Find package%>" />
</div>
</div>
</fieldset>

View file

@ -34,7 +34,7 @@ $Id$
<input type="file" size="30" name="archive" />
</div>
<div>
<input type="submit" class="cbi-input-apply" value="<%:Restore backup%>" />
<input type="submit" class="cbi-button cbi-input-apply" value="<%:Restore backup%>" />
</div>
</form>
<%+footer%>
<%+footer%>

View file

@ -19,7 +19,7 @@ $Id$
<% end %>
<% if self.popup then %>
<input class="cbi-input-button" type="button"<%= attr("name", cbid..".button")..attr("id", cbid..".button")..attr("value", self.displaytext)%>
<input class="cbi-button cbi-input-button" type="button"<%= attr("name", cbid..".button")..attr("id", cbid..".button")..attr("value", self.displaytext)%>
onclick="
popup=window.open('/luci-static/resources/OSMLatLon.htm', '<%=cbid%>.window', 'innerWidth=<%=self.width%>, innerHeight=<%=self.height%>, location=no, menubar=no, scrollbars=no, status=no, toolbar=no');
popup.focus();
@ -28,7 +28,7 @@ $Id$
</div>
<div>
<% else %>
<input class="cbi-input-button" type="button"<%= attr("name", cbid..".displayosm")..attr("id", cbid..".displayosm")..attr("value", self.displaytext)%>
<input class="cbi-button cbi-input-button" type="button"<%= attr("name", cbid..".displayosm")..attr("id", cbid..".displayosm")..attr("value", self.displaytext)%>
onclick="
document.getElementById('<%=cbid..".hideosm"%>').style.display='inline';
document.getElementById('<%=cbid..".displayosm"%>').style.display='none';
@ -40,7 +40,7 @@ $Id$
}
"
/>
<input class="cbi-input-button" style="display:none" type="button"<%= attr("name", cbid..".hideosm")..attr("id", cbid..".hideosm")..attr("value", self.hidetext)%>
<input class="cbi-button cbi-input-button" style="display:none" type="button"<%= attr("name", cbid..".hideosm")..attr("id", cbid..".hideosm")..attr("value", self.hidetext)%>
onclick="
document.getElementById('<%=cbid..".displayosm"%>').style.display='inline';
document.getElementById('<%=cbid..".hideosm"%>').style.display='none';

View file

@ -34,8 +34,8 @@ $Id$
<input type="file" size="30" name="archive" />
</div>
<div>
<input type="submit" name="cancel" class="cbi-input-cancel" value="<%:Cancel%>" />
<input type="submit" class="cbi-input-apply" value="<%:Restore backup%>" />
<input type="submit" name="cancel" class="cbi-button cbi-input-cancel" value="<%:Cancel%>" />
<input type="submit" class="cbi-button cbi-input-apply" value="<%:Restore backup%>" />
</div>
</form>
<%+footer%>
<%+footer%>