1 module servers.modeller.pages.register; 2 3 @safe: 4 import servers.modeller; 5 6 void uimRegister(HTTPServerRequest req, HTTPServerResponse res) { 7 debugMethodCall(moduleName!uimRegister~":uimRegister"); 8 STRINGAA reqParameters = readRequestParameters(req, null); 9 10 auto myController = APPPageController; 11 myController.view(APPView.layout(MDLLayout)); 12 13 auto responseContent = myController.view.render(reqParameters); 14 res.writeBody(responseContent, "text/html"); 15 } 16 17 /* static this() { 18 serverModeller.pages("register", new class DH5APPPageController { 19 this() { super(); } 20 21 override DH5Obj toH5(STRINGAA options = null) { 22 return H5Div(["wrapper wrapper--w680"], ` 23 <div class="card card-1"> 24 <div class="card-heading"></div> 25 <div class="card-body"> 26 <h2 class="title">Registration Info</h2> 27 <form method="POST"> 28 <div class="input-group"> 29 <input class="input--style-1" type="text" placeholder="NAME" name="name"> 30 </div> 31 <div class="row row-space"> 32 <div class="col-2"> 33 <div class="input-group"> 34 <input class="input--style-1 js-datepicker" type="text" placeholder="BIRTHDATE" name="birthday"> 35 <i class="zmdi zmdi-calendar-note input-icon js-btn-calendar"></i> 36 </div> 37 </div> 38 <div class="col-2"> 39 <div class="input-group"> 40 <div class="rs-select2 js-select-simple select--no-search"> 41 <select name="gender" tabindex="-1" class="select2-hidden-accessible" aria-hidden="true"> 42 <option disabled="disabled" selected="selected">GENDER</option> 43 <option>Male</option> 44 <option>Female</option> 45 <option>Other</option> 46 </select><span class="select2 select2-container select2-container--default" dir="ltr" style="width: 100.017px;"><span class="selection"><span class="select2-selection select2-selection--single" role="combobox" aria-haspopup="true" aria-expanded="false" tabindex="0" aria-labelledby="select2-gender-7r-container"><span class="select2-selection__rendered" id="select2-gender-7r-container" title="GENDER">GENDER</span><span class="select2-selection__arrow" role="presentation"><b role="presentation"></b></span></span></span><span class="dropdown-wrapper" aria-hidden="true"></span></span> 47 <div class="select-dropdown"></div> 48 </div> 49 </div> 50 </div> 51 </div> 52 <div class="input-group"> 53 <div class="rs-select2 js-select-simple select--no-search"> 54 <select name="class" tabindex="-1" class="select2-hidden-accessible" aria-hidden="true"> 55 <option disabled="disabled" selected="selected">CLASS</option> 56 <option>Class 1</option> 57 <option>Class 2</option> 58 <option>Class 3</option> 59 </select><span class="select2 select2-container select2-container--default" dir="ltr" style="width: 85.7px;"><span class="selection"><span class="select2-selection select2-selection--single" role="combobox" aria-haspopup="true" aria-expanded="false" tabindex="0" aria-labelledby="select2-class-7p-container"><span class="select2-selection__rendered" id="select2-class-7p-container" title="CLASS">CLASS</span><span class="select2-selection__arrow" role="presentation"><b role="presentation"></b></span></span></span><span class="dropdown-wrapper" aria-hidden="true"></span></span> 60 <div class="select-dropdown"></div> 61 </div> 62 </div> 63 <div class="row row-space"> 64 <div class="col-2"> 65 <div class="input-group"> 66 <input class="input--style-1" type="text" placeholder="REGISTRATION CODE" name="res_code"> 67 </div> 68 </div> 69 </div> 70 <div class="p-t-20"> 71 <button class="btn btn--radius btn--green" type="submit">Submit</button> 72 </div> 73 </form> 74 </div> 75 </div>`); 76 77 /* return 78 H5Div(["container-xl"], 79 pageTitle("Login"), 80 BS5Row(["row-cards"], 81 BS5Col(["col-md-6"], 82 BS5Card 83 .body_( 84 H5H2(["title"], "Registration Form"), 85 H5Forem(["method":"POST"], 86 BS5Row(["row-space"], 87 BS5Col(["col-2"], h 88 BS5InputGroup( 89 BS5Label("first name"), 90 BS5InputText(["name":"first_name"])), 91 BS5Col(["col-2"], 92 BS5InputGroup( 93 BS5Label("last name"), 94 BS5InputText(["name":"last_name"])) 95 ), 96 BS5Row(["row-space"], 97 BS5Col(["col-2"], 98 BS5InputGroup( 99 BS5Label("Birthday"), 100 H5Div(["input-group-icon"], BS5InputText(["name":"birthday"]))), 101 BS5Col["col-2"], 102 BS5InputGroup( 103 BS5Label("Gender"), 104 H5Div(["pt-10"], 105 H5Label(["radio-container m-r-45"], "Male"), 106 H5Input(["type":"radio", "checked":"checked", "name":"gender"]) 107 H5Span(["checkmark"]), 108 BS5Label(["radio-container"], "Female"), 109 H5Input(["type":"radio", "name":"gender"]) 110 H5Span(["checkmark"]) 111 ) 112 ) 113 <div class="row row-space"> 114 BS5Col["col-2"], 115 BS5InputGroup( 116 BS5Label("Email"), 117 <input class="input--style-4" type="email" name="email"> 118 </div> 119 </div> 120 BS5Col["col-2"], 121 BS5InputGroup( 122 BS5Label("Phone Number"), 123 <input class="input--style-4" type="text" name="phone"> 124 </div> 125 </div> 126 </div> 127 BS5InputGroup( 128 BS5Label("Subject"), 129 <div class="rs-select2 js-select-simple select--no-search"> 130 <select name="subject" tabindex="-1" class="select2-hidden-accessible" aria-hidden="true"> 131 <option disabled="disabled" selected="selected">Choose option</option> 132 <option>Subject 1</option> 133 <option>Subject 2</option> 134 <option>Subject 3</option> 135 </select><span class="select2 select2-container select2-container--default" dir="ltr" style="width: 139.9px;"><span class="selection"><span class="select2-selection select2-selection--single" role="combobox" aria-haspopup="true" aria-expanded="false" tabindex="0" aria-labelledby="select2-subject-vc-container"><span class="select2-selection__rendered" id="select2-subject-vc-container" title="Choose option">Choose option</span><span class="select2-selection__arrow" role="presentation"><b role="presentation"></b></span></span></span><span class="dropdown-wrapper" aria-hidden="true"></span></span> 136 <div class="select-dropdown"></div> 137 </div> 138 </div> 139 <div class="p-t-15"> 140 <button class="btn btn--radius-2 btn--blue" type="submit">Submit</button> 141 </div> 142 </form> 143 </div> 144 ) 145 ) 146 ).toString; * / 147 148 } 149 } 150 ); 151 } */