Projekt

Obecné

Profil

« Předchozí | Další » 

Revize a3b708c2

Přidáno uživatelem Jan Pašek před více než 3 roky(ů)

Re #8475 - Create certificate, selected CA binding

Zobrazit rozdíly:

static/create_certificate.html
38 38
            <tr>
39 39
                <div class="form-group">
40 40
                    <td><label for="issuer_CN">Common Name:</label></td>
41
                    <td class="pl-3"><input type="text" id="issuer_CN" name="issuer_CN" class="form-control" disabled></td>
41
                    <td class="pl-3">
42
                        <input type="text" id="issuer_CN" name="issuer_CN" class="form-control" v-bind:value="selectedCA.CN" disabled>
43
                    </td>
42 44
                </div>
43 45
            </tr>
44 46
            <tr>
45 47
                <div class="form-group">
46 48
                    <td><label for="issuer_C">Country Code:</label></td>
47
                    <td class="pl-3"><input type="text" id="issuer_C" name="issuer_C" class="form-control" disabled></td>
49
                    <td class="pl-3">
50
                        <input type="text" id="issuer_C" name="issuer_C" class="form-control" v-bind:value="selectedCA.C"  disabled>
51
                    </td>
48 52
                </div>
49 53
            </tr>
50 54
            <tr>
51 55
                <div class="form-group">
52 56
                    <td><label for="issuer_L">Locality:</label></td>
53
                    <td class="pl-3"><input type="text" id="issuer_L" name="issuer_L" class="form-control" disabled></td>
57
                    <td class="pl-3">
58
                        <input type="text" id="issuer_L" name="issuer_L" class="form-control" v-bind:value="selectedCA.L" disabled>
59
                    </td>
54 60
                </div>
55 61
            </tr>
56 62
            <tr>
57 63
                <div class="form-group">
58 64
                    <td><label for="issuer_ST">Province/State:</label></td>
59
                    <td class="pl-3"><input type="text" id="issuer_ST" name="issuer_ST" class="form-control" disabled></td>
65
                    <td class="pl-3">
66
                        <input type="text" id="issuer_ST" name="issuer_ST" class="form-control" v-bind:value="selectedCA.ST" disabled>
67
                    </td>
60 68
                </div>
61 69
            </tr>
62 70
            <tr>
63 71
                <div class="form-group">
64 72
                    <td><label for="issuer_O">Organization:</label></td>
65
                    <td class="pl-3"><input type="text" id="issuer_O" name="issuer_O" class="form-control" disabled></td>
73
                    <td class="pl-3">
74
                        <input type="text" id="issuer_O" name="issuer_O" class="form-control" v-bind:value="selectedCA.O" disabled>
75
                    </td>
66 76
                </div>
67 77
            </tr>
68 78
            <tr>
69 79
                <div class="form-group">
70 80
                    <td><label for="issuer_OU">Organization Unit:</label></td>
71
                    <td class="pl-3"><input type="text" id="issuer_OU" name="issuer_OU" class="form-control" disabled></td>
81
                    <td class="pl-3">
82
                        <input type="text" id="issuer_OU" name="issuer_OU" class="form-control" v-bind:value="selectedCA.OU" disabled>
83
                    </td>
72 84
                </div>
73 85
            </tr>
74 86
            <tr>
75 87
                <div class="form-group">
76 88
                    <td><label for="issuer_emailAddress">Email:</label></td>
77
                    <td class="pl-3"><input type="email" id="issuer_emailAddress" name="issuer_emailAddress" class="form-control" disabled></td>
89
                    <td class="pl-3">
90
                        <input type="email" id="issuer_emailAddress" name="issuer_emailAddress" class="form-control" v-bind:value="selectedCA.emailAddress" disabled>
91
                    </td>
78 92
                </div>
79 93
            </tr>
80 94
            <tr>
......
145 159
            </tr>
146 160
        </table>
147 161
    </div>
162

  
163
    <script src="https://cdn.jsdelivr.net/npm/vue@2/dist/vue.js"></script>
164
    <script src="/static/js/jquery-3.6.0.min.js"></script>
165
    <script src="/static/js/bootstrap.bundle.min.js"></script>
166
    <script src="/static/js/axios.min.js"></script>
167
    <script src="/static/js/constants.js"></script>
168
    <script src="/static/js/utilities.js"></script>
169
    <script src="/static/js/components.js"></script>
170
    <script src="/static/js/create_certificate.js"></script>
148 171
</body>
149 172
</html>
static/js/create_certificate.js
1
    var createCertificateApp = new Vue({
2
            el: "#create-certificate-content",
3
            data: {
4
                selectedCA: {
5
                    CN: "",
6
                    C:  "",
7
                    L:  "",
8
                    ST: "",
9
                    O:  "",
10
                    OU: "",
11
                    emailAddress: ""
12
                }
13
            }
14
        });

Také k dispozici: Unified diff