[SUCS Devel] [Git][sucssite/sucs-site][beta] 3 commits: Fix incorrect SU URL

Imran Hussain (@imranh) gitlab at projects.sucs.org
Tue Sep 19 18:26:13 BST 2023



Imran Hussain pushed to branch beta at sucssite / sucs-site


Commits:
35fe6ad3 by Andrew Vincent Pover at 2023-09-19T11:12:35+00:00
Fix incorrect SU URL
- - - - -
d03fde5e by Imran Hussain at 2023-09-19T17:19:58+00:00
[signup] Let people enter their own names
- - - - -
f5770825 by Imran Hussain at 2023-09-19T17:26:07+00:00
Merge branch 'master' into 'beta'

Master

See merge request sucssite/sucs-site!131
- - - - -


2 changed files:

- templates/signup.tpl
- templates/susignup.tpl


Changes:

=====================================
templates/signup.tpl
=====================================
@@ -55,7 +55,7 @@
         <div class="row" id="realnamediv">
             <label for="realname">{if $usertype!=2}Real Name{else}Society Name{/if}</label>
             <span class="textinput"><input type="text" id="realname" name="realname" size="30"
-                                           {if $mode=='re-form'}value='{$fields.realname}'{/if} {if $usertype==1}readonly{/if}/></span>
+                                           {if $mode=='re-form'}value='{$fields.realname}'{/if} {if $usertype==0}readonly{/if}/></span>
 
             <div id="realnamemessage"{if $mode=='re-form'}{if isset($errors.realname)}
                  style="color:red; float:right; clear:right;">{$errors.realname}{else} style="color:green; float:right;


=====================================
templates/susignup.tpl
=====================================
@@ -1,53 +1,53 @@
-{if $mode=='login'}
-    <form action="{$componentpath}" method="post">
-        <div class="box" style="width: 70%; margin: auto;">
-            <div class="boxhead"><h2>Membership Signup</h2></div>
-            <div class="boxcontent">
-
-                <p>Please enter your Transation ID. It can be found by logging into <a
-                            href='http://www.swansea-union.co.uk/shop/purchasehistory/'>swansea-union.com</a> and
-                    selecting purchase history.</p>
-
-                <div class="row">
-                    <label for="sid">Student Number:</label>
-                    <span class="textinput"><input type="text" size="20" name="sid" id="sid"/></span>
-                </div>
-                <div class="row">
-                    <label for="transactionID">Transaction ID:</label>
-                    <span class="textinput"><input type="text" size="20" name="transactionID"
-                                                   id="transactionID"/></span>
-                </div>
-                <div class="row"><span class="textinput">
-                <input type="submit" name="submit" value="Join"/></span>
-                </div>
-                <div class="clear"></div>
-                <div class="note">If you already have an account and wish to renew, simply buy an additional years
-                    membership from the <a href='https://sucs.org/join'>SUSU website</a>. Enter
-                    the details above and click "Join"
-                </div>
-            </div>
-            <div class="hollowfoot">
-                <div>
-                    <div></div>
-                </div>
-            </div>
-        </div>
-    </form>
-{elseif $mode=='form'}
-    <h1>Signup</h1>
-    <p>To contiune signup now click below</p>
-    <form action="{$baseurl}/signup/" method="post">
-        <input type=hidden name="signupid" id="id" value="{$id}"/>
-        <input type=hidden name="signuppw" id="pass" value="{$pass}"/>
-        <input type=hidden name="signupsid" id="sid" value="{$sid}"/>
-        <input type=submit name="submit" value="Proceed"/>
-    </form>
-{else}
-    <h1>Error</h1>
-    <div class='errorbar'>
-        <strong>Error: </strong> {$error_text}
-    </div>
-    An error occured during signup, please email, with as much information as you can provide,
-    <a href='mailto:admin at sucs.org'>admin at sucs.org</a>
-    for assistance.
-{/if}
+{if $mode=='login'}
+    <form action="{$componentpath}" method="post">
+        <div class="box" style="width: 70%; margin: auto;">
+            <div class="boxhead"><h2>Membership Signup</h2></div>
+            <div class="boxcontent">
+
+                <p>Please enter your Transation ID. It can be found by logging into <a
+                            href='http://www.swansea-union.co.uk/shop/purchasehistory/'>swansea-union.co.uk</a> and
+                    selecting purchase history.</p>
+
+                <div class="row">
+                    <label for="sid">Student Number:</label>
+                    <span class="textinput"><input type="text" size="20" name="sid" id="sid"/></span>
+                </div>
+                <div class="row">
+                    <label for="transactionID">Transaction ID:</label>
+                    <span class="textinput"><input type="text" size="20" name="transactionID"
+                                                   id="transactionID"/></span>
+                </div>
+                <div class="row"><span class="textinput">
+                <input type="submit" name="submit" value="Join"/></span>
+                </div>
+                <div class="clear"></div>
+                <div class="note">If you already have an account and wish to renew, simply buy an additional years
+                    membership from the <a href='https://sucs.org/join'>SUSU website</a>. Enter
+                    the details above and click "Join"
+                </div>
+            </div>
+            <div class="hollowfoot">
+                <div>
+                    <div></div>
+                </div>
+            </div>
+        </div>
+    </form>
+{elseif $mode=='form'}
+    <h1>Signup</h1>
+    <p>To contiune signup now click below</p>
+    <form action="{$baseurl}/signup/" method="post">
+        <input type=hidden name="signupid" id="id" value="{$id}"/>
+        <input type=hidden name="signuppw" id="pass" value="{$pass}"/>
+        <input type=hidden name="signupsid" id="sid" value="{$sid}"/>
+        <input type=submit name="submit" value="Proceed"/>
+    </form>
+{else}
+    <h1>Error</h1>
+    <div class='errorbar'>
+        <strong>Error: </strong> {$error_text}
+    </div>
+    An error occured during signup, please email, with as much information as you can provide,
+    <a href='mailto:admin at sucs.org'>admin at sucs.org</a>
+    for assistance.
+{/if}



View it on GitLab: https://projects.sucs.org/sucssite/sucs-site/-/compare/6d8b6ea7192efa308646c1b7a6bec38ba2a4ad7f...f5770825f771f05293ef544da14be77ae4f4f438

-- 
View it on GitLab: https://projects.sucs.org/sucssite/sucs-site/-/compare/6d8b6ea7192efa308646c1b7a6bec38ba2a4ad7f...f5770825f771f05293ef544da14be77ae4f4f438
You're receiving this email because of your account on projects.sucs.org.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sucs.org/pipermail/devel/attachments/20230919/8f1d2a2d/attachment-0001.html>


More information about the Devel mailing list