networks.html.ep 2.96 KB
Newer Older
fv3rdugo's avatar
fv3rdugo committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
<!DOCTYPE html>
<html ng-app="ravada.app">
%= include 'bootstrap/header'
<body id="page-top" data-spy="scroll" data-target=".navbar-fixed-top" role="document">
    <div id="wrapper">
    <div ng-controller="networks">
    %= include 'bootstrap/navigation'
    <div id="page-wrapper" class ="row">
        <div class="page-header col-md-8 col-md-offset-2">
        <div class="panel panel-default">
            <div class="panel-heading">
                <h2 class="text-center">Networks</h2>
                <div class="container" id="netform">
                <form class="pure-form pure-form-aligned" name="frm" action="" method="post" novalidate autocomplete="off">
                <fieldset>

                <div class="pure-control-group">
fv3rdugo's avatar
fv3rdugo committed
18
                  <label>Name*</label>
fv3rdugo's avatar
fv3rdugo committed
19
                  <input name="name" id='name' ng-model="name" type="text" placeholder="insert a network name" required >
fv3rdugo's avatar
fv3rdugo committed
20
                  <div class="field-message" ng-messages="frm.name.$error" ng-if='frm.name.$dirty' ng-cloak>
fv3rdugo's avatar
fv3rdugo committed
21
22
23
24
25
                    <div ng-message="required">Network name is required</div>
                  </div>
              </div>

                <div class="pure-control-group">
fv3rdugo's avatar
fv3rdugo committed
26
                <label>Network*</label>
fv3rdugo's avatar
fv3rdugo committed
27
                <input name="address" id='address' ng-model="address" type="text" placeholder="i.e. 192.168.10.0/24" required >
fv3rdugo's avatar
fv3rdugo committed
28
                    <div class="field-message" ng-messages="frm.address.$error" ng-if='frm.address.$dirty' ng-cloak>
fv3rdugo's avatar
fv3rdugo committed
29
30
31
32
33
34
                        <div ng-message="required">Network address is required</div>
                    </div>
              </div>

                <div class="pure-control-group">
                <label>Description</label>
fv3rdugo's avatar
fv3rdugo committed
35
                <input name="description" id='description' type="text" placeholder="info about this network" >
fv3rdugo's avatar
fv3rdugo committed
36
37
38
39
40
41
                    <div class="field-message" ng-messages="frm.description.$error" ng-if='frm.description.$dirty' ng-cloak>
                    </div> 
                </div>

                <div class="pure-control-group">
                    <label class="pure-checkbox">
fv3rdugo's avatar
fv3rdugo committed
42
                    <input name="all_domains" id='all_domains' type="checkbox" value="1">
fv3rdugo's avatar
fv3rdugo committed
43
44
45
46
47
48
                    Enable for all domains
                    </label>
                </div> 

                <div class="pure-control-group">
                    <label class="pure-checkbox">
fv3rdugo's avatar
fv3rdugo committed
49
                    <input name="no_domains" id='no_domains' type="checkbox" value="1" >
fv3rdugo's avatar
fv3rdugo committed
50
51
52
53
54
                    Disable for all domains
                    </label>
                </div> 

                <div class="pure-controls">
fv3rdugo's avatar
fv3rdugo committed
55
                    <input type="submit" class="pure-button pure-button-primary" value="Submit"
fv3rdugo's avatar
fv3rdugo committed
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
                        ng-disabled="frm.$invalid" ></input>
                </div>

                </fieldset>
                </form>
                </div>
            </div>
        </div>
        </div>
    </div>
    </div>
    </div>
    %= include 'bootstrap/scripts'
    %= include 'bootstrap/footer'
</body>
</html> 
><wbr>