Fix delete, style request dialog

This commit is contained in:
Vincent Fiduccia 2014-05-21 10:30:59 -07:00
parent f93b7b1598
commit eef564975f
4 changed files with 11 additions and 10 deletions

View File

@ -1,6 +1,6 @@
{
"name": "gdapi-ui",
"version": "2.0.3",
"version": "2.0.4",
"description": "HTML UI for GDAPI-compliant APIs",
"author": {
"name": "Vincent Fiduccia",

View File

@ -270,13 +270,14 @@ text-align: left;
#curl,
#request,
#response {
border: 1px solid #555;
background-color: #eee;
padding: 3px;
margin-bottom: 5px;
font-family: "Monaco", "Andale Mono", "Courier New", "Courier", monospace;
word-wrap: break-word;
}
#response {
margin-bottom: 0;
}
.response-header-name {
font-weight: bold;
}

View File

@ -12,7 +12,7 @@
<button type="button" class="btn btn-primary btn-sm" onclick="htmlapi.update()"><span class="glyphicon glyphicon-edit"></span> Edit</button>
{{/if}}
{{#if operations.delete}}
<button type="button" class="btn btn-primary btn-sm" onclick="htmlapi.delete()"><span class="glyphicon glyphicon-trash"></span> Delete</button>
<button type="button" class="btn btn-primary btn-sm" onclick="htmlapi.remove()"><span class="glyphicon glyphicon-trash"></span> Delete</button>
{{/if}}
</div>
<br/>

View File

@ -1,6 +1,6 @@
<b>cURL command line:</b>
<br/>
<div id="curl">
<div id="curl" class="well">
curl
{{#if curl_user}}-u <i>"{{curl_user}}"</i> \<br/>{{/if}}
-X {{method}} \<br/>
@ -25,7 +25,7 @@
</div>
<b>HTTP Request:</b><br/>
<div id="request">
<div id="request" class="well">
HTTP/1.1 {{method}} {{path}}<br/>
Host: {{host}}<br/>
Accept: application/json<br/>
@ -64,7 +64,7 @@
</div>
<b>HTTP Response:</b><br/>
<div id="response">
<div id="response" class="well">
<div id="notsent" class="inactive" style="padding: 20px; text-align: center;">Click below to send request.</div>
<div id="waiting" class="inactive" style="padding: 20px; text-align: center; display: none;">Waiting for response...</div>
<div id="result" style="display: none;"></div>