]> git.mxchange.org Git - friendica.git/commitdiff
Link to registration added
authorMichael <heluecht@pirati.ca>
Fri, 17 Jan 2020 12:44:26 +0000 (12:44 +0000)
committerMichael <heluecht@pirati.ca>
Fri, 17 Jan 2020 12:44:26 +0000 (12:44 +0000)
src/Module/Settings/Delegation.php
view/templates/settings/delegation.tpl

index 283753d126e9e50131bf53459b355fca11b81cdc..d9ae60582cae4294b8887413461d93eeb87f1700 100644 (file)
@@ -140,12 +140,15 @@ class Delegation extends BaseSettingsModule
 
                $o = Renderer::replaceMacros(Renderer::getMarkupTemplate('settings/delegation.tpl'), [
                        '$form_security_token' => BaseModule::getFormSecurityToken('delegate'),
+                       '$account_header' => L10n::t('Additional Accounts'),
+                       '$account_desc' => L10n::t('Register additional accounts that are automatically connected to your existing account so you can manage it from this account.'),
+                       '$add_account' => L10n::t('Register an additional account'),
                        '$parent_header' => L10n::t('Parent User'),
                        '$parent_user' => $parent_user,
                        '$parent_password' => $parent_password,
                        '$parent_desc' => L10n::t('Parent users have total control about this account, including the account settings. Please double check whom you give this access.'),
                        '$submit' => L10n::t('Save Settings'),
-                       '$header' => L10n::t('Delegate Page Management'),
+                       '$header' => L10n::t('Manage Accounts'),
                        '$delegates_header' => L10n::t('Delegates'),
                        '$base' => DI::baseUrl(),
                        '$desc' => L10n::t('Delegates are able to manage all aspects of this account/page except for basic account settings. Please do not delegate your personal account to anybody that you do not trust completely.'),
index 9e7242de67020367cd6252e859f1ce7918f315db..be8fdf606ead10de78deb275f0010fc24fa4e229 100644 (file)
                <div class="submit"><input type="submit" name="delegate" value="{{$submit}}"/></div>
        </form>
 </div>
+{{else}}
+<h4>{{$account_header}}</h4>
+<div id="add-account-desc" class="add-account-desc">{{$account_desc}}</div>
+<a href='register'>{{$add_account}}</a>
 {{/if}}
 
 <h4>{{$delegates_header}}</h4>