diff --git a/app.js b/app.js index 9b29d3c..600bd96 100644 --- a/app.js +++ b/app.js @@ -325,6 +325,8 @@ define(function(require) { }); template.on('change', '#sendfax_uploaded_file', function() { + $('.outbound-hidden').show(); + $('.outbound-expand').hide(); if ($(this).val()) { // Check if a file is selected $('.send-fax-button').prop('disabled', false); } else { @@ -332,6 +334,17 @@ define(function(require) { } }); + template.on('click', '.outbound-expand', function() { + $('.outbound-hidden').slideDown(); + $('.outbound-expand').hide(); + }); + template.on('click', '.outbound-contract', function() { + $('.outbound-hidden').slideUp(); + $('.outbound-contract').hide(); + $('.outbound-expand').show(); + }); + + template.on('click', '.send-fax-button', function(e) { e.preventDefault(); self.sendFaxUpload(template); diff --git a/i18n/de-DE.json b/i18n/de-DE.json index da6fb73..0d484a4 100644 --- a/i18n/de-DE.json +++ b/i18n/de-DE.json @@ -85,6 +85,7 @@ "selectFile": "Upload your file (PDF or TIFF format)", "selectNumber": "Select From Number", "sendFax": "Send Fax", + "sendAFax": "Send a Fax", "success": "fax has been queued for sending" }, "title": "Faxportal", diff --git a/i18n/en-US.json b/i18n/en-US.json index af1a409..47b50bd 100644 --- a/i18n/en-US.json +++ b/i18n/en-US.json @@ -9,13 +9,16 @@ }, "outbound": { "enterToNumber": "Enter Fax To Number", + "fromNumber": "From Number", "missingFile": "You must choose a PDF or TIFF file to send", "missingFrom": "You must select the source number.", "missingTo": "You must enter the destination fax number.", "selectFile": "Upload your file (PDF or TIFF format)", "selectNumber": "Select From Number", "sendFax": "Send Fax", - "success": "fax has been queued for sending" + "sendAFax": "Send a Fax", + "success": "fax has been queued for sending", + "toNumber": "To Number" }, "table": { "columns": { diff --git a/style/app.css b/style/app.css index ef60a98..3dd5402 100644 --- a/style/app.css +++ b/style/app.css @@ -181,3 +181,25 @@ line-height: 15px; padding: 2px; white-space: normal; } + +#send_outbound_fax { + float: right; + border: 1px solid #e0e0e9; + border-radius: 10px; + box-shadow: 5px 5px 10px rgba(0, 0, 0, 0.5); + padding: 10px; + clear: right; +} + +.outbound-hidden { + display: none; +} + +.outbound-title { + font-size: +1.2em; + font-weight: 500; + color: #2297FF; + display: flex; + justify-content: space-between; + padding-bottom: 4px; +} diff --git a/style/app.scss b/style/app.scss index 2fda975..12401f9 100644 --- a/style/app.scss +++ b/style/app.scss @@ -225,3 +225,25 @@ padding: 2px; white-space: normal; } + +#send_outbound_fax { + float: right; + border: 1px solid #e0e0e9; + border-radius: 10px; + box-shadow: 5px 5px 10px rgba(0, 0, 0, 0.5); + padding: 10px; + clear: right; +} + +.outbound-hidden { + display: none; +} + +.outbound-title { + font-size: +1.2em; + font-weight: 500; + color: #2297FF; + display: flex; + justify-content: space-between; + padding-bottom: 4px; +} diff --git a/views/outbound-faxes.html b/views/outbound-faxes.html index e089e37..f0835df 100644 --- a/views/outbound-faxes.html +++ b/views/outbound-faxes.html @@ -16,20 +16,32 @@ - +