]> git.mxchange.org Git - friendica.git/commitdiff
Additional accounts now work for the general template as well
authorMichael <heluecht@pirati.ca>
Fri, 17 Jan 2020 07:08:32 +0000 (07:08 +0000)
committerMichael <heluecht@pirati.ca>
Fri, 17 Jan 2020 07:08:32 +0000 (07:08 +0000)
view/templates/register.tpl

index b47d39b975fbee371484af5e277ea6b253436b64..d79da2d33abe441414bf9cad2ce2f5f29c22a8a8 100644 (file)
        <div id="register-name-end" ></div>
 
 
-       <div id="register-email-wrapper" >
-               <label for="register-email" id="label-register-email" >{{$addrlabel}}</label>
-               <input type="text" maxlength="60" size="32" name="field1" id="register-email" value="{{$email}}" required>
-       </div>
-       <div id="register-email-end" ></div>
-
-       <div id="register-repeat-wrapper" >
-               <label for="register-repeat" id="label-register-repeat" >{{$addrlabel2}}</label>
-               <input type="text" maxlength="60" size="32" name="repeat" id="register-repeat" value="" required>
-       </div>
-       <div id="register-repeat-end" ></div>
+       {{if !$additional}}
+               <div id="register-email-wrapper" >
+                       <label for="register-email" id="label-register-email" >{{$addrlabel}}</label>
+                       <input type="text" maxlength="60" size="32" name="field1" id="register-email" value="{{$email}}" required>
+               </div>
+               <div id="register-email-end" ></div>
+
+               <div id="register-repeat-wrapper" >
+                       <label for="register-repeat" id="label-register-repeat" >{{$addrlabel2}}</label>
+                       <input type="text" maxlength="60" size="32" name="repeat" id="register-repeat" value="" required>
+               </div>
+               <div id="register-repeat-end" ></div>
+       {{/if}}
 
 {{if $ask_password}}
        {{include file="field_password.tpl" field=$password1}}
 
        <input type="input" id=tarpit" name="email" style="display: none;" placeholder="Don't enter anything here"/>
 
+       {{if $additional}}
+               {{include file="field_password.tpl" field=$parent_password}}
+       {{/if}}
+
 {{if $permonly}}
        {{include file="field_textarea.tpl" field=$permonlybox}}
 {{/if}}
        </div>
        <div id="register-submit-end" ></div>
 
-       <h3>{{$importh}}</h3>
-       <div id ="import-profile">
-               <a href="uimport">{{$importt}}</a>
-       </div>
+       {{if !$additional}}
+               <h3>{{$importh}}</h3>
+               <div id ="import-profile">
+                       <a href="uimport">{{$importt}}</a>
+               </div>
+       {{/if}}
 </form>