-
Notifications
You must be signed in to change notification settings - Fork 33
Expand file tree
/
Copy pathmanage.html
More file actions
67 lines (65 loc) · 2.78 KB
/
manage.html
File metadata and controls
67 lines (65 loc) · 2.78 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
<template name="manageApiDocumentationModal">
<div class="modal fade">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<i class="fa fa-times" aria-hidden="true"></i>
</button>
<h1 class="modal-title">{{_ "manageApiDocumentationModal_Title" }}</h1>
</div>
<div class="modal-body">
{{#autoForm collection=apisCollection doc=api id="apiDocumentationForm" type="update" }}
<legend>
{{> showHelp 'uploadApiDocumentation'}}
{{_ "import_ApiDocumentation_Title"}}
</legend>
<div class="documentation-file">
{{#unless documentationFile }}
{{> manageApiDocumentationModalUploadButton }}
{{else}}
<ul class="list-group">
<li class="list-group-item">
<i class="fa fa-file-text-o" aria-hidden="true"></i>
{{ documentationFile.filename }}
<span class="pull-right">
<button type="button" class="btn btn-xs btn-danger delete-documentation">
<i class="fa fa-trash-o fa-lg" aria-hidden="true"></i>
</button>
</span>
</li>
</ul>
{{> afQuickField
name="submit_methods"
options=supportedSubmitMethods
type="select-checkbox-inline"
noselect=false
}}
{{/unless}}
</div>
{{# if apiDocumentationEditorIsEnabled}}
<legend>
{{>showHelp 'documentation_editor_create_file'}}
{{_ "manageApiDocumentationModal_CreateDocumentation_Title" }}
</legend>
<a id="open-api-editor" class="btn btn-primary" href="/documentation/editor">
{{_ "manageApiDocumentationModal_openDocumentationEditor" }}
</a>
{{/ if }}
<legend>
{{>showHelp 'documentation_link'}}
{{_ "manageApiDocumentationModal_DocumentationLink_Title" }}
</legend>
{{> afQuickField name='documentation_link'}}
<button type="submit" class="btn btn-success" id="save-documentation-link">
{{_ "manageApiDocumentationModal_CreateDocumentation_SaveButton" }}
</button>
<button type="button" class="btn btn-default" data-dismiss="modal">
{{_ "manageApiDocumentationModal_CreateDocumentation_CancelButton" }}
</button>
{{/ autoForm }}
</div>
</div>
</div>
</div>
</template>