Skip to content

Commit

Permalink
Cleaning up css of submit buttons in admin interface.
Browse files Browse the repository at this point in the history
  • Loading branch information
Peter Adams committed Apr 4, 2020
1 parent b796b77 commit 8183061
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 15 deletions.
5 changes: 3 additions & 2 deletions modules/base/css/owa.css
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ body {border-color:#cccccc; background-color:; font-family:Helvetica,'Arial'; pa
th {padding:6px 6px 6px 6px; text-align:left;}
td {padding: 2px 2px 2px 2px;}
legend {font-size:16px;font-weight:bold;}
fieldset{margin: 7px; border:1px solid #cccccc;}
fieldset{margin: 7px; padding: 20px; border:1px solid #cccccc;}
div {margin:0;}

.owa a {
Expand Down Expand Up @@ -73,8 +73,9 @@ div {margin:0;}
border: 1px solid #efefef;
-moz-border-radius: 3px;
-webkit-border-radius: 3px;
margin-top: 50px;
margin: 25px 0px 0px 0px;
text-decoration: none;
cursor: pointer;

}
.owa-button:hover {
Expand Down
4 changes: 2 additions & 2 deletions modules/base/templates/options_general.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -265,9 +265,9 @@

<?php echo $this->createNonceFormField('base.optionsUpdate');?>

<BUTTON type="submit" name="<?php echo $this->getNs();?>action" value="base.optionsUpdate">Update Configuration</BUTTON>
<BUTTON class="owa-button" type="submit" name="<?php echo $this->getNs();?>action" value="base.optionsUpdate">Update Configuration</BUTTON>
<input type="hidden" name="<?php echo $this->getNs();?>module" value="base">
<BUTTON type="submit" name="<?php echo $this->getNs();?>action" value="base.optionsReset">Reset Base Module Configuration to Default Values</BUTTON>
<BUTTON class="owa-button" type="submit" name="<?php echo $this->getNs();?>action" value="base.optionsReset">Reset Configuration to Default Values</BUTTON>

</form>
</div>
19 changes: 8 additions & 11 deletions modules/base/templates/sites_addoredit.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -21,21 +21,18 @@
<input type="hidden" name="<?php echo $this->getNs();?>domain" value="<?php $this->out( $site['domain'] );?>">
<TD><?php $this->out( $site['domain'] );?></TD>
<?php else:?>
<TD>

<select name="<?php echo $this->getNs();?>protocol">
<option value="http://">http://</option>
<option value="https://">https://</option>
</select>

<TD>
<input type="text" name="<?php echo $this->getNs();?>domain" size="52" maxlength="70" value="<?php $this->out( @$site['domain'] );?>"><BR>
Example: http://some.domain.com<BR>
<span class="validation_error"><?php $this->out( @$validation_errors['domain'] );?></span>
</TD>
<?php endif;?>
</TR>
<TR>
<TH>Site Name:</TH>
<TD><input type="text" name="<?php echo $this->getNs();?>name" size="52" maxlength="70" value="<?php $this->out( @$site['name'] );?>"></TD>
<TD><input type="text" name="<?php echo $this->getNs();?>name" size="52" maxlength="70" value="<?php $this->out( @$site['name'] );?>"><BR>
Example: The Best Website
</TD>
</TR>
<TR>
<TH>Description:</TH>
Expand All @@ -50,7 +47,7 @@
<BR>
<?php echo $this->createNonceFormField($action);?>
<input type="hidden" name="<?php echo $this->getNs();?>action" value="<?php $this->out( $action, false );?>">
<input type="submit" name="<?php echo $this->getNs();?>submit_btn" value="Save Profile">
<input class="owa-button" type="submit" name="<?php echo $this->getNs();?>submit_btn" value="Save Profile">

</form>

Expand Down Expand Up @@ -104,7 +101,7 @@
<input type="hidden" name="<?php echo $this->getNs();?>siteId" value="<?php $this->out( @$site['site_id'] );?>">
<input type="hidden" name="<?php echo $this->getNs();?>module" value="base">
<input type="hidden" name="<?php echo $this->getNs();?>action" value="base.sitesEditSettings">
<input type="submit" name="<?php echo $this->getNs();?>submit_btn" value="Save Settings">
<input type="submit" name="<?php echo $this->getNs();?>submit_btn" value="Save Settings" class="owa-button">
</fieldset>
</form>
<form method="post" name="owa-allowedusersform">
Expand All @@ -121,7 +118,7 @@
<input type="hidden" name="<?php echo $this->getNs();?>siteId" value="<?php $this->out( @$site['site_id'] );?>">
<input type="hidden" name="<?php echo $this->getNs();?>module" value="base">
<input type="hidden" name="<?php echo $this->getNs();?>action" value="base.sitesEditAllowedUsers">
<input type="submit" name="<?php echo $this->getNs();?>submit_btn" value="Save Users">
<input type="submit" name="<?php echo $this->getNs();?>submit_btn" value="Save Users" class="owa-button">
</fieldset>

</form>
Expand Down

0 comments on commit 8183061

Please sign in to comment.