2019-07-26 20:15:53 +00:00
{% include 'header.html' %}
< h3 > New Offer< / h3 >
{% for m in messages %}
< p > {{ m }}< / p >
{% endfor %}
< form method = "post" >
< table >
2021-10-20 17:47:49 +00:00
< tr > < td > Send To< / td > < td > < select name = "addr_to_" disabled >
< option { % if data . addr_to = ="-1" % } selected { % endif % } value = "-1" > -- Public Network --< / option >
{% for a in addrs_to %}
2021-12-05 23:06:34 +00:00
< option { % if data . addr_to = =a[0] % } selected { % endif % } value = "{{ a[0] }}" > {{ a[0] }} {{ a[1] }}< / option >
2021-10-20 17:47:49 +00:00
{% endfor %}
< / select > < / td > < / tr >
2020-12-17 13:52:39 +00:00
< tr > < td > Send From Address< / td > < td > < select name = "addr_from_" disabled >
2019-07-28 19:57:20 +00:00
{% for a in addrs %}
2021-12-05 23:06:34 +00:00
< option { % if data . addr_from = =a[0] % } selected { % endif % } value = "{{ a[0] }}" > {{ a[0] }} {{ a[1] }}< / option >
2019-07-28 19:57:20 +00:00
{% endfor %}
2020-12-16 21:19:39 +00:00
< option { % if data . addr_from = ="-1" % } selected { % endif % } value = "-1" > -- New Address --< / option >
2019-07-28 19:57:20 +00:00
< / select > < / td > < / tr >
2021-01-02 16:16:44 +00:00
< tr class = "padded_row" > < td class = "bold" > Coin From< / td > < td >
2020-12-17 13:52:39 +00:00
< select name = "coin_from_" disabled > < option value = "-1" > -- Select Coin --< / option >
2021-12-11 20:11:42 +00:00
{% for c in coins_from %}
2020-12-16 21:19:39 +00:00
< option { % if data . coin_from = =c[0] % } selected { % endif % } value = "{{ c[0] }}" > {{ c[1] }}< / option >
2019-07-26 20:15:53 +00:00
{% endfor %}
2019-07-27 21:14:28 +00:00
< / select >
2020-12-17 13:52:39 +00:00
< / td > < td > Amount From< / td > < td > < input type = "text" name = "amt_from" value = "{{ data.amt_from }}" readonly > < / td > < td > The amount you will send.< / td > < / tr >
{% if data.swap_style == 'xmr' %}
2021-01-02 14:59:34 +00:00
< tr > < td > Fee From Confirm Target< / td > < td > < input type = "number" name = "fee_from_conf" min = "1" max = "32" value = "{{ data.fee_from_conf }}" > < / td > < / tr >
< tr > < td > Fee From Increase By< / td > < td >
2020-12-16 21:19:39 +00:00
< select name = "fee_from_extra" >
< option value = "0" > None< / option >
< option value = "10" { % if data . fee_from_extra = =10 % } selected { % endif % } > 10%< / option >
< option value = "50" { % if data . fee_from_extra = =50 % } selected { % endif % } > 50%< / option >
< option value = "100" { % if data . fee_from_extra = =100 % } selected { % endif % } > 100%< / option >
< / select > < / td > < / tr >
2020-12-17 13:52:39 +00:00
{% endif %}
2019-07-26 20:15:53 +00:00
2021-01-02 16:16:44 +00:00
< tr class = "padded_row" > < td class = "bold" > Coin To< / td > < td >
2020-12-17 13:52:39 +00:00
< select name = "coin_to_" disabled > < option value = "-1" > -- Select Coin --< / option >
2019-07-26 20:15:53 +00:00
{% for c in coins %}
2020-12-16 21:19:39 +00:00
< option { % if data . coin_to = =c[0] % } selected { % endif % } value = "{{ c[0] }}" > {{ c[1] }}< / option >
2019-07-26 20:15:53 +00:00
{% endfor %}
2019-07-27 21:14:28 +00:00
< / select >
2020-12-17 13:52:39 +00:00
< / td > < td > Amount To< / td > < td > < input type = "text" name = "amt_to" value = "{{ data.amt_to }}" readonly > < / td > < td > The amount you will receive.< / td > < / tr >
{% if data.swap_style == 'xmr' and coin_to != '6' %}
2021-01-02 14:59:34 +00:00
< tr > < td > Fee To Confirm Target< / td > < td > < input type = "number" name = "fee_to_conf" min = "1" max = "32" value = "{{ data.fee_to_conf }}" > < / td > < / tr >
< tr > < td > Fee To Increase By< / td > < td >
2020-12-16 21:19:39 +00:00
< select name = "fee_to_extra" >
< option value = "0" > None< / option >
< option value = "10" { % if data . fee_to_extra = =10 % } selected { % endif % } > 10%< / option >
< option value = "50" { % if data . fee_to_extra = =50 % } selected { % endif % } > 50%< / option >
< option value = "100" { % if data . fee_to_extra = =100 % } selected { % endif % } > 100%< / option >
< / select > < / td > < / tr >
2020-12-17 13:52:39 +00:00
{% endif %}
2022-05-31 22:38:50 +00:00
< tr > < td > Rate< / td > < td > < input type = "text" id = "rate" name = "rate" value = "{{ data.rate }}" readonly > < / td > < / tr >
2021-11-21 20:59:39 +00:00
< tr > < td > Amount Variable< / td > < td colspan = 3 > < input type = "checkbox" id = "amt_var" name = "amt_var_" value = "av" { % if data . amt_var = =true % } checked = "true" { % endif % } disabled > < / td > < / tr >
< tr > < td > Rate Variable< / td > < td colspan = 3 > < input type = "checkbox" id = "rate_var" name = "rate_var_" value = "rv" { % if data . rate_var = =true % } checked = "true" { % endif % } disabled > < / td > < / tr >
2019-07-26 20:15:53 +00:00
2021-02-13 22:54:01 +00:00
< tr class = "padded_row" > < td > Offer valid (hrs)< / td > < td > < input type = "number" name = "validhrs" min = "1" max = "48" value = "{{ data.validhrs }}" > < / td > < / tr >
2021-12-15 13:41:43 +00:00
{% if data.debug_ui == true %}
< tr > < td > Contract locked (mins)< / td > < td > < input type = "number" name = "lockmins" min = "10" max = "5000" value = "{{ data.lockmins }}" > < / td > {% if data.swap_style != 'xmr' %}< td colspan = 2 > Participate txn will be locked for half the time.< / td > {% endif %}< / tr >
{% else %}
2021-02-13 22:54:01 +00:00
< tr > < td > Contract locked (hrs)< / td > < td > < input type = "number" name = "lockhrs" min = "1" max = "96" value = "{{ data.lockhrs }}" > < / td > {% if data.swap_style != 'xmr' %}< td colspan = 2 > Participate txn will be locked for half the time.< / td > {% endif %}< / tr >
2021-12-15 13:41:43 +00:00
{% endif %}
2022-05-31 22:38:50 +00:00
< tr > < td > Auto Accept Strategy< / td > < td colspan = 3 >
< select name = "automation_strat_id" > < option value = "-1" { % if data . automation_strat_id = =-1 % } selected { % endif % } > -- None --< / option >
{% for a in automation_strategies %}
< option value = "{{ a[0] }}" { % if data . automation_strat_id = =a[0] % } selected { % endif % } > {{ a[1] }}< / option >
{% endfor %}
< / select >
< / td > < / tr >
2021-11-21 20:59:39 +00:00
2019-07-26 20:15:53 +00:00
< / table >
2020-12-17 13:52:39 +00:00
< input name = "check_offer" type = "submit" value = "Continue" >
< input name = "step1" type = "submit" value = "Back" >
2019-07-26 20:15:53 +00:00
< input type = "hidden" name = "formid" value = "{{ form_id }}" >
2021-10-20 17:47:49 +00:00
< input type = "hidden" name = "addr_to" value = "{{ data.addr_to }}" >
2020-12-17 13:52:39 +00:00
< input type = "hidden" name = "addr_from" value = "{{ data.addr_from }}" >
< input type = "hidden" name = "coin_from" value = "{{ data.coin_from }}" >
< input type = "hidden" name = "coin_to" value = "{{ data.coin_to }}" >
2021-11-21 20:59:39 +00:00
{% if data.amt_var==true %}
< input type = "hidden" name = "amt_var" value = "true" >
{% endif %}
{% if data.rate_var==true %}
< input type = "hidden" name = "rate_var" value = "true" >
{% endif %}
2019-07-26 20:15:53 +00:00
< / form >
< / body > < / html >