WIP maatma domains interface
This commit is contained in:
parent
5de19436e0
commit
cd848e3ff6
|
@ -0,0 +1,26 @@
|
|||
package main
|
||||
|
||||
import (
|
||||
"github.com/julienschmidt/httprouter"
|
||||
)
|
||||
|
||||
func init() {
|
||||
router.GET("/api/ddomains/", apiAuthHandler(func (student Student, ps httprouter.Params, body []byte) (interface{}, error) {
|
||||
return student.GetDelegatedDomains()
|
||||
}))
|
||||
router.GET("/api/ddomains/:dn", apiAuthHandler(func (student Student, ps httprouter.Params, body []byte) (interface{}, error) {
|
||||
return student.GetDelegatedDomain(ps.ByName("dn"))
|
||||
}))
|
||||
}
|
||||
|
||||
type DelegatedDomain struct {
|
||||
|
||||
}
|
||||
|
||||
func (student Student) GetDelegatedDomain(dn string) (d DelegatedDomain, err error) {
|
||||
return
|
||||
}
|
||||
|
||||
func (student Student) GetDelegatedDomains() (ds []DelegatedDomain, err error) {
|
||||
return
|
||||
}
|
|
@ -0,0 +1,76 @@
|
|||
<h2>
|
||||
Noms de domaine
|
||||
</h2>
|
||||
|
||||
<h3>Association simple</h3>
|
||||
|
||||
<table class="table table-striped table-hover">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Domaine</th>
|
||||
<th>TTL</th>
|
||||
<th>Type</th>
|
||||
<th>Entrée</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody style="font-family: monospace">
|
||||
<tr>
|
||||
<td>{{ isLogged.login }}.adlin2020.p0m.fr</td>
|
||||
<td>900</td>
|
||||
<td>A</td>
|
||||
<td>82.64.31.248</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>{{ isLogged.login }}.adlin2020.p0m.fr</td>
|
||||
<td>900</td>
|
||||
<td>AAAA</td>
|
||||
<td>2a01:e0a:2b:2252:{{ isLogged.id.toString(16) }}::1</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
<tfoot>
|
||||
<tr>
|
||||
<td colspan="4">
|
||||
<button class="btn btn-primary" ng-click="newAssociation()">
|
||||
<span class="spinner-border spinner-border-sm" role="status" aria-hidden="true" ng-show="pleaseWaitNewAssociation"></span>
|
||||
Demander un nouveau nom de domaine
|
||||
</button>
|
||||
</td>
|
||||
</tr>
|
||||
</tfoot>
|
||||
</table>
|
||||
|
||||
<hr class="my-4">
|
||||
|
||||
<h3>Délégation</h3>
|
||||
|
||||
<table class="table table-striped table-hover">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Domaine</th>
|
||||
<th>NS</th>
|
||||
<th>GLUE</th>
|
||||
<th>DNSSEC</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody style="font-family: monospace">
|
||||
<tr>
|
||||
<td>{{ isLogged.login }}.srs2020.p0m.fr</td>
|
||||
<td>ns.{{ isLogged.login }}.srs2020.p0m.fr</td>
|
||||
<td>2a01:e0a:2b:2252:{{ isLogged.id.toString(16) }}::1</td>
|
||||
<td>
|
||||
<span class="badge badge-pill badge-success" ng-show="false">Activé</span>
|
||||
<span class="badge badge-pill badge-danger">Non configuré</span>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
<tfoot>
|
||||
<tr>
|
||||
<td colspan="4">
|
||||
<button class="btn btn-primary" ng-click="newDelegation()">
|
||||
<span class="spinner-border spinner-border-sm" role="status" aria-hidden="true" ng-show="pleaseWaitNewDelegation"></span>
|
||||
Demander un nouveau nom de domaine
|
||||
</button>
|
||||
</td>
|
||||
</tr>
|
||||
</tfoot>
|
||||
</table>
|
Reference in New Issue