Commit d73191ce authored by chibaguy's avatar chibaguy

[ENH] Bootstrap classes added to input type="submit".

parent e7e9e279
......@@ -355,7 +355,7 @@ function delete_ref(ref_id){
{/section}
</select>
<br>
<input class="wikiaction" type="submit" value="{tr}Use{/tr}" id="u_lib" name="u_lib">
<input class="wikiaction btn btn-default" type="submit" value="{tr}Use{/tr}" id="u_lib" name="u_lib">
<br><span id="u_lib_status"></span>
{/if}
{/if}
......@@ -429,13 +429,13 @@ function delete_ref(ref_id){
<tr>
<td colspan="2">
<div id="e_btns">
<input class="wikiaction" type="submit" value="Save" id="e_submit" name="e_submit">
<input class="wikiaction" type="reset" value="Cancel" id="e_cancel" name="e_cancel">
<input class="wikiaction btn btn-default" type="submit" value="Save" id="e_submit" name="e_submit">
<input class="wikiaction btn btn-warning" type="reset" value="Cancel" id="e_cancel" name="e_cancel">
<span id="e_status" style="margin: 0 0 0 10px;"></span>
</div>
<div id="a_btns">
<input class="wikiaction" type="submit" value="{tr}Add{/tr}" id="a_submit" name="a_submit">
<input class="wikiaction" type="reset" value="{tr}Cancel{/tr}" id="a_cancel" name="a_cancel">
<input class="wikiaction btn btn-default" type="submit" value="{tr}Add{/tr}" id="a_submit" name="a_submit">
<input class="wikiaction btn btn-warning" type="reset" value="{tr}Cancel{/tr}" id="a_cancel" name="a_cancel">
<span id="a_status" style="margin: 0 0 0 10px;"></span>
</div>
</td>
......
......@@ -5,7 +5,7 @@
<form action="tiki-admin.php?page=ads" onreset="return(confirm("{tr}Cancel Edit{/tr}"))" class="admin" method="post">
<div class="heading input_submit_container" style="text-align: right">
<input type="submit" value="{tr}Change preferences{/tr}">
<input type="submit" class="btn btn-default" value="{tr}Change preferences{/tr}">
</div>
<input type="hidden" name="adssetup">
......@@ -33,6 +33,6 @@
</fieldset>
<div class="input_submit_container clear" style="text-align: center">
<input type="submit" value="{tr}Change preferences{/tr}">
<input type="submit" class="btn btn-default" value="{tr}Change preferences{/tr}">
</div>
</form>
......@@ -14,7 +14,7 @@
<form method="post" action="tiki-admin.php?page=articles">
<div class="input_submit_container clear" style="text-align: right;">
<input type="submit" value="{tr}Change preferences{/tr}" />
<input type="submit" class="btn btn-default" value="{tr}Change preferences{/tr}" />
</div>
{tabset name="admin_articles"}
......@@ -107,7 +107,7 @@
<br>
<em>{tr}File format: title,authorName,heading,body,lang,user{/tr}....</em>
<div align="center">
<input type="submit" name="import" value="{tr}Import{/tr}" />
<input type="submit" class="btn btn-default" name="import" value="{tr}Import{/tr}" />
</div>
</div>
</div>
......@@ -153,7 +153,7 @@
{/tab}
{/tabset}
<div class="input_submit_container clear" style="text-align: center;">
<input type="submit" value="{tr}Change preferences{/tr}" />
<input type="submit" class="btn btn-default" value="{tr}Change preferences{/tr}" />
</div>
</form>
......@@ -6,7 +6,7 @@
<form action="tiki-admin.php?page=blogs" method="post">
<div class="heading input_submit_container" style="text-align: right">
<input type="submit" value="{tr}Change preferences{/tr}" />
<input type="submit" class="btn btn-default" value="{tr}Change preferences{/tr}" />
</div>
{tabset name="admin_blogs"}
......@@ -81,6 +81,6 @@
{/tab}
{/tabset}
<div class="heading input_submit_container" style="text-align: center">
<input type="submit" value="{tr}Change preferences{/tr}" />
<input type="submit" class="btn btn-default" value="{tr}Change preferences{/tr}" />
</div>
</form>
......@@ -4,7 +4,7 @@
<form action="tiki-admin.php?page=calendar" method="post">
<div class="input_submit_container clear" style="text-align: right;">
<input type="submit" name="calprefs" value="{tr}Change settings{/tr}" />
<input type="submit" class="btn btn-default" name="calprefs" value="{tr}Change settings{/tr}" />
</div>
<fieldset class="admin">
......@@ -85,7 +85,7 @@
{preference name=calendar_watch_editor}
</fieldset>
<div class="input_submit_container clear" style="text-align: center;">
<input type="submit" name="calprefs" value="{tr}Change settings{/tr}" />
<input type="submit" class="btn btn-default" name="calprefs" value="{tr}Change settings{/tr}" />
</div>
</form>
......@@ -13,7 +13,7 @@
<form action="tiki-admin.php?page=category" method="post">
<input type="hidden" name="categorysetup" />
<div class="input_submit_container clear" style="text-align: right;">
<input type="submit" value="{tr}Change preferences{/tr}" />
<input type="submit" class="btn btn-default" value="{tr}Change preferences{/tr}" />
</div>
<fieldset class="admin">
......@@ -90,6 +90,6 @@
</fieldset>
<div class="input_submit_container clear" style="text-align: center;">
<input type="submit" value="{tr}Change preferences{/tr}" />
<input type="submit" class="btn btn-default" value="{tr}Change preferences{/tr}" />
</div>
</form>
......@@ -7,7 +7,7 @@
<form action="tiki-admin.php?page=comments" method="post">
<div class="heading input_submit_container" style="text-align: right">
<input type="submit" name="commentssetprefs" value="{tr}Change preferences{/tr}" />
<input type="submit" class="btn btn-default" name="commentssetprefs" value="{tr}Change preferences{/tr}" />
</div>
{tabset name="admin_wiki"}
......@@ -88,6 +88,6 @@
{/tabset}
<div class="heading input_submit_container" style="text-align: center">
<input type="submit" name="commentssetprefs" value="{tr}Change preferences{/tr}" />
<input type="submit" class="btn btn-default" name="commentssetprefs" value="{tr}Change preferences{/tr}" />
</div>
</form>
......@@ -8,7 +8,7 @@
<form action="tiki-admin.php?page=community" method="post">
<div class="input_submit_container clear" style="text-align: right;">
<input type="submit" value="{tr}Change preferences{/tr}" />
<input type="submit" class="btn btn-default" value="{tr}Change preferences{/tr}" />
</div>
{tabset name="admin_community"}
......@@ -229,6 +229,6 @@
{/tab}
{/tabset}
<div class="input_submit_container clear" style="text-align: center;">
<input type="submit" value="{tr}Change preferences{/tr}" />
<input type="submit" class="btn btn-default" value="{tr}Change preferences{/tr}" />
</div>
</form>
......@@ -102,7 +102,7 @@
</fieldset>
<div class="heading input_submit_container" style="text-align: center;">
<input type="submit" name="connectprefs" value="{tr}Change preferences{/tr}" />
<input type="submit" class="btn btn-default" name="connectprefs" value="{tr}Change preferences{/tr}" />
</div>
</form>
{/tab}
......@@ -111,7 +111,7 @@
<h2>{tr}Recent connections{/tr}</h2>
<form class="admin" name="cserver_form" action="tiki-admin.php?page=connect" method="post">
<input name="cserver_search" type="text" value="{$cserver_search_text}" />
<input name="cserver" type="submit" value="{tr}Search{/tr}" />
<input name="cserver" type="submit" class="btn btn-default" value="{tr}Search{/tr}" />
{button cserver="rebuild" _auto_args="cserver,page" _text="{tr}Rebuild Index{/tr}" _title="{tr}Rebuild received connections index{/tr}"}
{if !empty($connect_stats)}
<span>{tr _0=$connect_stats.received _1=$connect_stats.guids}<strong>Server stats:</strong> %0 reports received from %1 Tikis{/tr}</span>
......
......@@ -4,7 +4,7 @@
<form action="tiki-admin.php?page=copyright" method="post">
<div class="input_submit_container clear" style="text-align: right;">
<input type="submit" value="{tr}Change preferences{/tr}" />
<input type="submit" class="btn btn-default" value="{tr}Change preferences{/tr}" />
</div>
<input type="hidden" name="setcopyright" />
......@@ -30,6 +30,6 @@
</fieldset>
<div class="input_submit_container clear" style="text-align: center;">
<input type="submit" value="{tr}Change preferences{/tr}" />
<input type="submit" class="btn btn-default" value="{tr}Change preferences{/tr}" />
</div>
</form>
......@@ -2,7 +2,7 @@
<form action="tiki-admin.php?page=directory" method="post">
<div class="input_submit_container clear" style="text-align: right;">
<input type="submit" name="directory" value="{tr}Change preferences{/tr}" />
<input type="submit" class="btn btn-default" name="directory" value="{tr}Change preferences{/tr}" />
</div>
<fieldset class="admin">
......@@ -20,6 +20,6 @@
{preference name=directory_open_links}
</fieldset>
<div class="input_submit_container clear" style="text-align: center;">
<input type="submit" name="directory" value="{tr}Change preferences{/tr}" />
<input type="submit" class="btn btn-default" name="directory" value="{tr}Change preferences{/tr}" />
</div>
</form>
......@@ -4,7 +4,7 @@
<form action="tiki-admin.php?page=faqs" method="post">
<div class="heading input_submit_container" style="text-align: right">
<input type="submit" name="faqcomprefs" value="{tr}Change settings{/tr}" />
<input type="submit" class="btn btn-default" name="faqcomprefs" value="{tr}Change settings{/tr}" />
</div>
<fieldset class="admin">
......@@ -23,6 +23,6 @@
</div>
</fieldset>
<div class="heading input_submit_container" style="text-align: center">
<input type="submit" name="faqcomprefs" value="{tr}Change settings{/tr}" />
<input type="submit" class="btn btn-default" name="faqcomprefs" value="{tr}Change settings{/tr}" />
</div>
</form>
......@@ -4,7 +4,7 @@
<form class="admin" id="features" name="features" action="tiki-admin.php?page=features" method="post">
<div class="heading input_submit_container" style="text-align: right">
<input type="submit" name="features" value="{tr}Apply{/tr}" />
<input type="submit" class="btn btn-default" name="features" value="{tr}Apply{/tr}" />
<input type="reset" name="featuresreset" value="{tr}Reset{/tr}" />
</div>
......@@ -236,6 +236,6 @@
<div class="input_submit_container" style="margin-top: 5px; text-align: center">
<input type="submit" name="features" value="{tr}Apply{/tr}" />
<input type="submit" class="btn btn-default" name="features" value="{tr}Apply{/tr}" />
</div>
</form>
......@@ -26,7 +26,7 @@
<form action="tiki-admin.php?page=fgal" method="post">
<div class="heading input_submit_container" style="text-align: right">
<input type="submit" name="filegalhandlers" value="{tr}Change preferences{/tr}" />
<input type="submit" class="btn btn-default" name="filegalhandlers" value="{tr}Change preferences{/tr}" />
</div>
{tabset name="fgal_admin"}
......@@ -90,7 +90,7 @@
{preference name='fgal_fix_mime_type'}
<div class="adminoptionboxchild" id="fgal_fix_mime_type_childcontainer">
<input type="submit" name="updateMime" id="updateMime" value="{tr}Update mime of all non archived octet-stream files{/tr}" />
<input type="submit" class="btn btn-default" name="updateMime" id="updateMime" value="{tr}Update mime of all non archived octet-stream files{/tr}" />
</div>
{preference name='fgal_upload_from_source'}
......@@ -259,7 +259,7 @@
<div class="adminoptionbox">
<div class="adminoptionlabel">
<div align="center">
<input type="submit" name="filegalredosearch" value="{tr}Reindex all files for search{/tr}"/>
<input type="submit" class="btn btn-default" name="filegalredosearch" value="{tr}Reindex all files for search{/tr}"/>
</div>
</div>
</div>
......@@ -319,6 +319,6 @@
{/tabset}
<div class="input_submit_container clear" style="text-align: center">
<input type="submit" name="filegalhandlers" value="{tr}Change preferences{/tr}" />
<input type="submit" class="btn btn-default" name="filegalhandlers" value="{tr}Change preferences{/tr}" />
</div>
</form>
......@@ -5,7 +5,7 @@
<form method="post" action="tiki-admin.php?page=forums">
<div class="heading input_submit_container" style="text-align: right">
<input type="submit" value="{tr}Change preferences{/tr}" />
<input type="submit" class="btn btn-default" value="{tr}Change preferences{/tr}" />
</div>
{tabset name="admin_forums"}
......@@ -82,6 +82,6 @@
{/tab}
{/tabset}
<div class="heading input_submit_container" style="text-align: center">
<input type="submit" value="{tr}Change preferences{/tr}" />
<input type="submit" class="btn btn-default" value="{tr}Change preferences{/tr}" />
</div>
</form>
<form action="tiki-admin.php?page=freetags" method="post">
<div class="heading input_submit_container" style="text-align: right">
<input type="submit" value="{tr}Change preferences{/tr}" />
<input type="submit" class="btn btn-default" value="{tr}Change preferences{/tr}" />
</div>
{tabset name="admin_freetags"}
{tab name="{tr}General Settings{/tr}"}
......@@ -58,7 +58,7 @@
<div class="adminoptionbox">
<div class="adminoptionlabel">
<div align="center">
<input type="submit" value="{tr}Cleanup unused tags{/tr}" name="cleanup" />
<input type="submit" class="btn btn-default" value="{tr}Cleanup unused tags{/tr}" name="cleanup" />
</div>
</div>
</div>
......@@ -103,6 +103,6 @@
{/if}
{/tabset}
<div class="heading input_submit_container" style="text-align: center">
<input type="submit" value="{tr}Change preferences{/tr}" />
<input type="submit" class="btn btn-default" value="{tr}Change preferences{/tr}" />
</div>
</form>
......@@ -15,7 +15,7 @@
<legend>{tr}Home Gallery{/tr}</legend>
<form action="tiki-admin.php?page=gal" method="post">
{preference name=home_gallery}
<input type="submit" name="galset" value="{tr}OK{/tr}" />
<input type="submit" class="btn btn-default" name="galset" value="{tr}OK{/tr}" />
</form>
</fieldset>
......@@ -166,7 +166,7 @@
</tr>
<tr>
<td colspan="2" class="input_submit_container">
<input type="submit" name="galfeatures" value="{tr}Set features{/tr}" />
<input type="submit" class="btn btn-default" name="galfeatures" value="{tr}Set features{/tr}" />
</td>
</tr>
</table>
......@@ -183,7 +183,7 @@
<input type="hidden" name="rmvorphimg" value="1" />
</td>
<td>
<input type="submit" name="button" value="{tr}Remove{/tr}" />
<input type="submit" class="btn btn-default" name="button" value="{tr}Remove{/tr}" />
</td>
</tr>
</table>
......@@ -214,7 +214,7 @@
</select>
</td>
<td>
<input type="submit" name="button" value="{tr}Move{/tr}" />
<input type="submit" class="btn btn-default" name="button" value="{tr}Move{/tr}" />
</td>
</tr>
{if $prefs.gal_use_db eq 'n'}
......@@ -224,7 +224,7 @@
<td>
<input type="text" name="gal_use_dir" value="{$prefs.gal_use_dir|escape}" size="50" />
<td>
<input type="submit" name="button" value="{tr}Move{/tr}" /></td></tr>
<input type="submit" class="btn btn-default" name="button" value="{tr}Move{/tr}" /></td></tr>
{/if}
{if isset($movedimgs) and $movedimgs}
<tr>
......@@ -272,7 +272,7 @@
<td><input type="checkbox" name="gal_list_visits" {if $prefs.gal_list_visits eq 'y'}checked="checked"{/if} /></td>
</tr>
<tr>
<td colspan="2" class="input_submit_container"><input type="submit" name="imagegallistprefs" value="{tr}Change configuration{/tr}" /></td>
<td colspan="2" class="input_submit_container"><input type="submit" class="btn btn-default" name="imagegallistprefs" value="{tr}Change configuration{/tr}" /></td>
</tr>
</table>
</form>
......@@ -299,7 +299,7 @@
</td>
</tr>
<tr>
<td colspan="2" class="input_submit_container"><input type="submit" name="imagegalcomprefs" value="{tr}Change settings{/tr}" /></td>
<td colspan="2" class="input_submit_container"><input type="submit" class="btn btn-default" name="imagegalcomprefs" value="{tr}Change settings{/tr}" /></td>
</tr>
</table>
</form>
......
......@@ -3,7 +3,7 @@
<form action="tiki-admin.php?page=general" class="admin" method="post">
<input type="hidden" name="new_prefs" />
<div class="heading input_submit_container" style="text-align: right;">
<input type="submit" value="{tr}Change preferences{/tr}" />
<input type="submit" class="btn btn-default" value="{tr}Change preferences{/tr}" />
</div>
{if !empty($error_msg)}
{remarksbox type='warning' title="{tr}Warning{/tr}" icon='error'}
......@@ -359,6 +359,6 @@
{/tabset}
<div class="heading input_submit_container" style="text-align: center;">
<input type="submit" value="{tr}Change preferences{/tr}" />
<input type="submit" class="btn btn-default" value="{tr}Change preferences{/tr}" />
</div>
</form>
......@@ -6,7 +6,7 @@
<form action="tiki-admin.php?page=gmap" method="post">
<input type="hidden" name="gmapsetup" value="" />
<div class="heading input_submit_container" style="text-align: right">
<input type="submit" value="{tr}Change preferences{/tr}" />
<input type="submit" class="btn btn-default" value="{tr}Change preferences{/tr}" />
</div>
<fieldset class="admin">
......@@ -35,7 +35,7 @@
</fieldset>
</fieldset>
<div class="heading input_submit_container" style="text-align: center">
<input type="submit" value="{tr}Change preferences{/tr}" />
<input type="submit" class="btn btn-default" value="{tr}Change preferences{/tr}" />
</div>
</form>
......
......@@ -14,7 +14,7 @@
<form action="tiki-admin.php?page=i18n" method="post">
<div class="heading input_submit_container" style="text-align: right">
<input type="submit" value="{tr}Change preferences{/tr}" />
<input type="submit" class="btn btn-default" value="{tr}Change preferences{/tr}" />
</div>
<input type="hidden" name="i18nsetup" />
{tabset name="admin_i18n"}
......@@ -102,7 +102,7 @@
</option>
{/section}
</select>
<input type="submit" name="custom" value="{tr}Edit{/tr}" />
<input type="submit" class="btn btn-default" name="custom" value="{tr}Edit{/tr}" />
{else}
{if !empty($custom_error)}
{remarksbox title="{tr}Error{/tr}" type="error"}
......@@ -137,12 +137,12 @@
<tr><td><input type="text" name="from[]" value="{$fr|escape}"/></td><td><input type="text" name="to[]" value="{$to.$i|escape}"/></td></tr>
{/foreach}
</table>
<input type="submit" name="custom_save" value="{tr}Save{/tr}" />
<input type="submit" class="btn btn-default" name="custom_save" value="{tr}Save{/tr}" />
{/if}
</div>
{/tab}
{/tabset}
<div class="heading input_submit_container" style="text-align: center">
<input type="submit" value="{tr}Change preferences{/tr}" />
<input type="submit" class="btn btn-default" value="{tr}Change preferences{/tr}" />
</div>
</form>
......@@ -112,7 +112,7 @@
</tr>
</table>
<div class="heading input_submit_container" style="text-align: center">
<input type="submit" name="intertikiclient" value="{tr}Save{/tr}" />
<input type="submit" class="btn btn-default" name="intertikiclient" value="{tr}Save{/tr}" />
</div>
</form>
{/tab}
......@@ -205,7 +205,7 @@
</tr>
</table>
<div class="heading input_submit_container" style="text-align: center">
<input type="submit" name="intertikiserver" value="{tr}Save{/tr}" />
<input type="submit" class="btn btn-default" name="intertikiserver" value="{tr}Save{/tr}" />
</div>
</form>
{/tab}
......
......@@ -28,7 +28,7 @@
<form action="tiki-admin.php?page=login" class="admin" method="post" name="LogForm">
<input type="hidden" name="loginprefs" />
<div class="heading input_submit_container" style="text-align: right">
<input type="submit" value="{tr}Change preferences{/tr}" />
<input type="submit" class="btn btn-default" value="{tr}Change preferences{/tr}" />
</div>
{tabset name="admin_login"}
......@@ -402,6 +402,6 @@
{/tab}
{/tabset}
<div class="heading input_submit_container" style="text-align: center">
<input type="submit" value="{tr}Change preferences{/tr}" />
<input type="submit" class="btn btn-default" value="{tr}Change preferences{/tr}" />
</div>
</form>
{* $Id$ *}
<form action="tiki-admin.php?page=look" id="look" name="look" class="labelColumns" onreset="return(confirm("{tr}Cancel Edit{/tr}"))" class="admin" method="post">
<div class="heading input_submit_container" style="text-align: right">
<input type="submit" name="looksetup" value="{tr}Apply{/tr}" />
<input type="submit" class="btn btn-default" name="looksetup" value="{tr}Apply{/tr}" />
<input type="reset" name="looksetupreset" value="{tr}Reset{/tr}" />
</div>
......@@ -23,7 +23,7 @@
{preference name=style_admin_option}
{if $prefs.javascript_enabled eq 'n' or $prefs.feature_jquery eq 'n'}
<input type="submit" name="changestyle" value="{tr}Go{/tr}" />
<input type="submit" class="btn btn-default" name="changestyle" value="{tr}Go{/tr}" />
{/if}
</div>
</div>
......@@ -193,8 +193,8 @@
<div class="adminoptionboxchild" id="themegenerator_feature_childcontainer">
<input type="text" name="tg_edit_theme_name" value="{$tg_edit_theme_name|escape}"{if !empty($prefs.themegenerator_theme)} style="display:none;"{/if} />
<input type="submit" name="tg_new_theme" value="{tr}New{/tr}"{if !empty($prefs.themegenerator_theme)} style="display:none;"{/if} />
<input type="submit" name="tg_delete_theme" value="{tr}Delete{/tr}"{if empty($prefs.themegenerator_theme)} style="display:none;"{/if} />
<input type="submit" class="btn btn-default" name="tg_new_theme" value="{tr}New{/tr}"{if !empty($prefs.themegenerator_theme)} style="display:none;"{/if} />
<input type="submit" class="btn btn-default" name="tg_delete_theme" value="{tr}Delete{/tr}"{if empty($prefs.themegenerator_theme)} style="display:none;"{/if} />
{jq}$("select[name=themegenerator_theme]").change(function(){
if ($(this)[0].selectedIndex === 0) {
$("input[name=tg_edit_theme_name]").keyup(function(e){
......@@ -217,7 +217,7 @@
<div id="themegenerator_container">
{include file="themegen.tpl"}
<div class="input_submit_container clear" style="text-align: center">
<input type="submit" name="tg_preview" value="{tr}Preview Theme{/tr}">
<input type="submit" class="btn btn-default" name="tg_preview" value="{tr}Preview Theme{/tr}">
</div>
</div>
{if $prefs.themegenerator_feature eq 'y'}
......@@ -329,6 +329,6 @@
{/tabset}
<div class="input_submit_container clear" style="text-align: center">
<input type="submit" name="looksetup" value="{tr}Apply{/tr}" />
<input type="submit" class="btn btn-default" name="looksetup" value="{tr}Apply{/tr}" />
</div>
</form>
<form action="tiki-admin.php?page=maps" method="post">
<div class="heading input_submit_container" style="text-align: right">
<input type="submit" name="mapsset" value="{tr}Change preferences{/tr}" />
<input type="submit" class="btn btn-default" name="mapsset" value="{tr}Change preferences{/tr}" />