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 // Show only the not selectable optgroup
// Choosen only shows optgroup-labels if there are options in the optgroup // Choosen only shows optgroup-labels if there are options in the optgroup
$(".languagedivider").hide(); $(".languagedivider").hide();

View file

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