Uniform Styles and Indentation Fixes for Personal Block

This commit is contained in:
raghunayyar 2013-10-11 18:03:53 +05:30
parent b9bfe31981
commit e27bb660bd
2 changed files with 20 additions and 11 deletions

View file

@ -171,7 +171,6 @@ $(document).ready(function(){
}
});
$("#languageinput").chosen();
// Show only the not selectable optgroup
// Choosen only shows optgroup-labels if there are options in the optgroup
$(".languagedivider").hide();

View file

@ -104,19 +104,29 @@ if($_['passwordChangeSupported']) {
<form>
<fieldset class="personalblock">
<h2><?php p($l->t('Language'));?></h2>
<select id="languageinput" class="chzen-select" name="lang" data-placeholder="<?php p($l->t('Language'));?>">
<option value="<?php p($_['activelanguage']['code']);?>"><?php p($_['activelanguage']['name']);?></option>
<?php foreach($_['commonlanguages'] as $language):?>
<option value="<?php p($language['code']);?>"><?php p($language['name']);?></option>
<?php endforeach;?>
<optgroup label=""><option class="languagedivider">-</option></optgroup>
<?php foreach($_['languages'] as $language):?>
<option value="<?php p($language['code']);?>"><?php p($language['name']);?></option>
<?php endforeach;?>
<select id="languageinput" name="lang" data-placeholder="<?php p($l->t('Language'));?>">
<option value="<?php p($_['activelanguage']['code']);?>">
<?php p($_['activelanguage']['name']);?>
</option>
<?php foreach($_['commonlanguages'] as $language):?>
<option value="<?php p($language['code']);?>">
<?php p($language['name']);?>
</option>
<?php endforeach;?>
<optgroup label="">
<option class="languagedivider">-</option>
</optgroup>
<?php foreach($_['languages'] as $language):?>
<option value="<?php p($language['code']);?>">
<?php p($language['name']);?>
</option>
<?php endforeach;?>
</select>
<?php if (OC_Util::getEditionString() === ''): ?>
<a href="https://www.transifex.com/projects/p/owncloud/team/<?php p($_['activelanguage']['code']);?>/"
target="_blank"><em><?php p($l->t('Help translate'));?></em></a>
target="_blank">
<em><?php p($l->t('Help translate'));?></em>
</a>
<?php endif; ?>
</fieldset>
</form>