View | Details | Raw Unified | Return to bug 33883
Collapse All | Expand All

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/members/apikeys.tt (-9 / +8 lines)
Lines 36-43 Link Here
36
36
37
            [% IF fresh_api_key %]
37
            [% IF fresh_api_key %]
38
                [%# A fresh api key was generated, display the secret, only once %]
38
                [%# A fresh api key was generated, display the secret, only once %]
39
                <div class="rows">
39
                <div class="dialog message">Make sure to copy your API secret now. You won’t be able to see it again!</div>
40
                    <span class="alert">Make sure to copy your API secret now. You won’t be able to see it again!</span>
40
                <div class="page-section rows">
41
                    <ol>
41
                    <ol>
42
                        <li>
42
                        <li>
43
                            <span class="label">Description: </span>
43
                            <span class="label">Description: </span>
Lines 72-79 Link Here
72
                    </fieldset>
72
                    </fieldset>
73
                </form>
73
                </form>
74
74
75
                <div id="keys">
75
                [% IF api_keys.count %]
76
                    [% IF api_keys.count %]
76
                    <div class="page-section" id="keys">
77
                        <p>
77
                        <p>
78
                            <button class="btn btn-default toggle_element" type="submit" id="show-api-form" data-element="#add-api-key"><i class="fa fa-plus"></i> Generate a new client id/key pair</button>
78
                            <button class="btn btn-default toggle_element" type="submit" id="show-api-form" data-element="#add-api-key"><i class="fa fa-plus"></i> Generate a new client id/key pair</button>
79
                        </p>
79
                        </p>
Lines 117-126 Link Here
117
                                [% END %]
117
                                [% END %]
118
                            </tbody>
118
                            </tbody>
119
                        </table>
119
                        </table>
120
                    [% ELSE %]
120
                    </div>
121
                        <div class="dialog message">No keys defined for the current patron. <a href="#" class="toggle_element" data-element="#add-api-key" id="show-api-form"><i class="fa fa-plus"></i> Generate a new client id/secret pair</div>
121
                [% ELSE %]
122
                    [% END %]
122
                    <div class="dialog message">No keys defined for the current patron. <a href="#" class="toggle_element" data-element="#add-api-key" id="show-api-form"><i class="fa fa-plus"></i> Generate a new client id/secret pair</div>
123
                </div>
123
                [% END %]
124
            </main>
124
            </main>
125
        </div> <!-- /.col-sm-10.col-sm-push-2 -->
125
        </div> <!-- /.col-sm-10.col-sm-push-2 -->
126
126
127
- 

Return to bug 33883