fix __dirapi by conf.dirapi
This commit is contained in:
		| @@ -4,8 +4,8 @@ | ||||
|       <p>Step by step </p> | ||||
|       <div class="input-group mb-3"> | ||||
|         <input class="form-control me-1" type="search" placeholder="Search" aria-label="Search"> | ||||
|         <button class="btn btn-outline-primary" onclick="app.search(this)"> | ||||
|           <i class="fa-solid fa-magnifying-glass"></i> | ||||
|         <button class="btn btn-outline-primary btn-sm" onclick="app.search(this)"> | ||||
|           <i class="bi-search"></i> | ||||
|         </button> | ||||
|       </div>   | ||||
|       <h4 class="mt-4">Articles</h4> | ||||
|   | ||||
| @@ -20,7 +20,7 @@ | ||||
|         {{^mayorId}} | ||||
|           <p> | ||||
|            This town is not own by a mayor, anyone can use a pagan account to tell that he is owning this, so please, | ||||
|            {{#auth}} you are authenticate under alias: {{alias}} <button class="btn btn-primary" onclick="towns.owntown();">Own this town</button> | ||||
|            {{#auth}} you are authenticate under alias: {{alias}} <button class="btn btn-primary" onclick="towns.owntown('{{alias}}');">Own this town</button> | ||||
|            {{/auth}} | ||||
|            {{^auth}} you have to be authenticat with an alias to own this town. go to Pagan / create login logout and authentify yourself and come back here. | ||||
|            {{/auth}}          | ||||
| @@ -30,13 +30,13 @@ | ||||
|             {{#devtown}} | ||||
|             <p>You need to change town name (by default it is for dev "devfarm") by running on serveur as sudoer user: </p> | ||||
|             <code>node apxtrib.js nationId:nationRequested townId:nameNotalreadyUse dns:domainToAccessTown </code> | ||||
|             <p>Come back here.</p> | ||||
|             <p>Then Come back here.</p> | ||||
|             {{/devtown}} | ||||
|             {{^devtown}}  | ||||
|             <p> As owner you({{alias}}) can give the ownership of this town to an other alias. Be carefull when you click on this button you lose all your accessright on this town.</p>  | ||||
|             <div class="input-group mb-3"> | ||||
|                 <input type="text" class="form-control" placeholder="Give alias to take the ownership" aria-label="New owner alias" aria-describedby="button-chgown"> | ||||
|                 <button class="btn btn-outline-secondary" type="button" id="button-chgown">Give him the role on this town</button> | ||||
|                 <input id="newowner" type="text" class="form-control" placeholder="Give alias to take the ownership" aria-label="New owner alias" aria-describedby="button-chgown"> | ||||
|                 <button class="btn btn-outline-secondary" type="button" id="button-chgown" onclick="towns.owntown(document.getelementbyId('newowner').value)">Give him the role on this town</button> | ||||
|             </div> | ||||
|              | ||||
|             {{/devtown}} | ||||
|   | ||||
							
								
								
									
										42
									
								
								adminapi/www/adminapx/static/tpl/towntribes_en.mustache
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										42
									
								
								adminapi/www/adminapx/static/tpl/towntribes_en.mustache
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,42 @@ | ||||
| <div class="container"> | ||||
|     <div class="row"> | ||||
|         <h4 class="text-center">Manage your tribes</h4> | ||||
|         <div id="{{idcomponent}}" class="col-sm-6 objmanager" > | ||||
|             <div class="row"> | ||||
|                 <div class="col"> | ||||
|                     <p>Tribes</p> | ||||
|                 </div> | ||||
|                 <div class="col text-end"> | ||||
|                     <div class="input-group mb-3"> | ||||
|                         <input class="inputfilter form-control me-1" type="search" placeholder="Filter" aria-label="Search"> | ||||
|                         <button class="btnfilter btn btn-outline-primary btn-sm" onclick="objman.filter('{{idcomponent}}';this)"> | ||||
|                         <i class="bi-search"></i> | ||||
|                         </button> | ||||
|                         <button class=" objaddedit btn btn-outline-primary btn-sm" onclick="objman.objedit('{{idcomponent}}');"><i class="bi-plus"></i></button>  | ||||
|                         <button class=" objaddedit btn btn-outline-primary btn-sm" onclick="objman.objedit('{{schema}}');"><i class="bi-filetype-json"></i></button>  | ||||
|                         <button class="objlistreturn btn btn-outline-primary btn-sm d-none" onclick="objman.returnlist('{{idcomponent}}')"><i class="bi-list-ul"></i></button> | ||||
|                     </div>     | ||||
|                 </div> | ||||
|             </div> | ||||
|             <div class="objlist"> | ||||
|                 <ul class="list-group"> | ||||
|                    {{#itm}} | ||||
|                     <li class="list-group-item"> | ||||
|                       <span>{{tribeId}} ({{druidId}})</span> | ||||
|                       <div> | ||||
|                         <button class="btn btn-outline-primary btn-sm" onclick="objman.objedit('{{idcomponent}}','{{tribeId}}')"><i class="bi-pen"></i></button> | ||||
|                         <button class="btn btn-outline-primary btn-sm" onclick="{{fctdel}}('{{objectname}}',{{tribeId}})"><i class="bi-trash"></i></button> | ||||
|                       </div> | ||||
|                     </li> | ||||
|                     {{/itm}} | ||||
|                 </ul> | ||||
|             </div> | ||||
|             <div class="objitm d-none"> | ||||
|                 {{{tplform}}} | ||||
|                 <div class="msgaction"></div> | ||||
|             </div> | ||||
|         </div> | ||||
|         <div class="col-sm-6" > | ||||
|         </div> | ||||
|     </div> | ||||
| </div> | ||||
		Reference in New Issue
	
	Block a user