add generic_addon_settings template and minor fixes
This commit is contained in:
parent
0905180385
commit
d11bec6f58
@ -681,7 +681,7 @@ function settings_content(&$a) {
|
||||
'$pubcomments' => array('dspr_pubcomment', t('Allow any Diaspora member to comment on your public posts'), $pubcomments, '', $yes_no),
|
||||
'$dsprtitle' => t('Diaspora Policy Settings'),
|
||||
'$hijacking' => array('dspr_hijack', t('Prevent your hashtags from being redirected to other sites'), $hijacking, '', $yes_no),
|
||||
'$dsprsubmit' => t('Submit Diaspora Policy Settings'),
|
||||
'$dsprsubmit' => t('Submit'),
|
||||
'$settings_addons' => $settings_addons
|
||||
));
|
||||
return $o;
|
||||
|
17
view/tpl/generic_addon_settings.tpl
Normal file
17
view/tpl/generic_addon_settings.tpl
Normal file
@ -0,0 +1,17 @@
|
||||
<div class="panel">
|
||||
<div class="section-subtitle-wrapper" role="tab" id="{{$addon.0}}-settings">
|
||||
<h3>
|
||||
<a title="{{$addon.2}}" data-toggle="collapse" data-parent="#settings" href="#{{$addon.0}}-settings-content" aria-controls="{{$addon.0}}-settings-content">
|
||||
{{$addon.1}}
|
||||
</a>
|
||||
</h3>
|
||||
</div>
|
||||
<div id="{{$addon.0}}-settings-content" class="panel-collapse collapse" role="tabpanel" aria-labelledby="{{$addon.0}}-settings">
|
||||
<div class="section-content-tools-wrapper">
|
||||
{{$content}}
|
||||
<div class="settings-submit-wrapper" >
|
||||
<button id="{{$addon.0}}-submit" type="submit" name="{{$addon.0}}-submit" class="btn btn-primary" value="{{$addon.3}}">{{$addon.3}}</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
@ -27,7 +27,7 @@
|
||||
</div>
|
||||
</div>
|
||||
{{/if}}
|
||||
</div>
|
||||
{{$settings_addons}}
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
|
Reference in New Issue
Block a user