-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hamlet template rewrite #3
base: master
Are you sure you want to change the base?
Changes from 4 commits
97f8e42
bc0ddd2
78f8c5d
0f3d35f
c63c489
e52789a
886f14d
74a7e89
6962d79
79f8b35
031268d
26fbe12
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
import React from 'react'; | ||
|
||
|
||
export default function () { | ||
return ( | ||
<div> | ||
<big> | ||
<s>#[ac]#</s> | ||
<b>#[ac]#</b> | ||
<small className="text-muted">#[currSign c]</small> | ||
</big> | ||
<br/> | ||
<small className="text-muted">#[sign]#[cents2dblT f]# | ||
<small>#[currSign c] ^[d]</small> | ||
</small> | ||
</div> | ||
) | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
import React from 'react'; | ||
|
||
|
||
export default function () { | ||
return ( | ||
<div> | ||
<tr | ||
id="order-data-#{fromSqlKey orderId}" | ||
className="data-row" | ||
> | ||
<td className="text-muted text-center"> | ||
<small> | ||
#[renderDateTimeRow l tzo (exchangeOrderCreated order)] | ||
</small> | ||
</td> | ||
<td className="text-center"> | ||
<big>#[renderOrderExchange order]</big> | ||
</td> | ||
<td className="text-center"> | ||
<small className="text-muted">x# \#[renderOrderRate order] #</small> | ||
<small className="text-muted">#[renderOrderNRatioSign order]</small> | ||
</td> | ||
<td>#[renderOrderRemainderExecuted l tzo order]</td> | ||
<td className="controls"> | ||
<a href="#{urlRender (ClientOrderViewR orderId)}"> | ||
<i | ||
className="control fas fa-info-circle" | ||
title="#{messageRender MsgViewOrderHistory}" | ||
/> | ||
<i | ||
className="order-cancel-button control fas fa-times-circle" | ||
title="#{messageRender MsgCancelOrder}" | ||
/> | ||
<form | ||
method="post" | ||
action="#{urlRender ClientOrderCancelR}" | ||
> | ||
<input | ||
type="hidden" | ||
name="order-id" | ||
value="#{fromSqlKey orderId}" | ||
/> | ||
</form> | ||
</a> | ||
</td> | ||
</tr> | ||
</div> | ||
) | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
import React from 'react'; | ||
|
||
|
||
export default function () { | ||
return ( | ||
<div> | ||
<tr className="data-row"> | ||
<td className="text-center"> | ||
<small> | ||
#[renderDateTimeRow l tzo (exchangeOrderExecutionTime op)] | ||
</small> | ||
</td> | ||
<td> | ||
<small>_[MsgExchange] #</small> | ||
<span> | ||
<b>#[cents2dblT transfered]#</b> | ||
<small className="text-muted">#[renderPairOut pair]</small> | ||
<small>_[MsgOrderWasExecuted] #</small> | ||
</span> | ||
</td> | ||
<td className="text-center align-middle">+#<span> | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Move |
||
<b>#[cents2dblT (income - fee)]#</b> | ||
<small className="text-muted">#[renderPairIn pair]</small> | ||
</span> | ||
<br className="d-md-none"/> | ||
<small className="d-md-none">-# | ||
<span>#[cents2dblT fee] | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Tag content to new line |
||
<small className="text-muted">#[renderPairIn pair]</small> | ||
</span> | ||
</small> | ||
</td> | ||
<td className="d-none d-md-table-cell text-center align-middle">-# | ||
<span>#[cents2dblT fee] | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Move tag contents to new line |
||
<small className="text-muted">#[renderPairIn pair]</small> | ||
</span> | ||
</td> | ||
</tr> | ||
</div> | ||
) | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
import React from 'react'; | ||
|
||
|
||
export default function () { | ||
return ( | ||
<div> | ||
<div className="row"> | ||
<div className="col-10 mx-auto"> | ||
<div className="alert alert-warning"> | ||
<div className="error">#[e]</div> | ||
</div> | ||
</div> | ||
</div> | ||
<form | ||
id="#{formId}" | ||
method="post" | ||
encType="#{enctype}" | ||
action="@{WithdrawalCreateR}" | ||
className="col-12 col-sm-10 col-md-8 mx-auto" | ||
>^[widget] | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Move tag contents to new line |
||
<div className="form-group row justify-content-center"> | ||
<button | ||
className="btn btn-lg btn-outline-primary mt-2" | ||
type="submit" | ||
>вывод | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Move tag contents to new line |
||
</button> | ||
</div> | ||
</form>^[withdrawalHistory] | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Move |
||
</div> | ||
) | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
import React from 'react'; | ||
|
||
|
||
export default function () { | ||
return ( | ||
<div> | ||
<tr | ||
className="data-row" | ||
id="data-row-#{fromSqlKey ident}" | ||
> | ||
<td>^[dateTimeRowW withdrawalRequestCreated\</td> | ||
<td className="align-middle"> | ||
<s>^[valueW]</s> | ||
<b>^[valueW]</b> | ||
<span>^[valueW]</span> | ||
<br/> | ||
<small className="text-muted"> | ||
_[transferMethodMsg withdrawalRequestMethod] | ||
</small> | ||
</td> | ||
<td className="align-middle">^[expected]</td> | ||
<td className="align-middle">^[status]</td> | ||
<td className="controls align-middle"> | ||
<i | ||
className="request-cancel-button control fas fa-times-circle" | ||
title="_{MsgCancelRequest}" | ||
/> | ||
<form | ||
className="request-cancel-form d-none" | ||
method="post" | ||
action="@{ClientCancelWithdrawalR}" | ||
> | ||
<input | ||
type="hidden" | ||
name="request-id" | ||
value="#{fromSqlKey ident}" | ||
/> | ||
</form> | ||
</td> | ||
</tr> | ||
</div> | ||
) | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
import React from 'react'; | ||
|
||
|
||
export default function () { | ||
return ( | ||
<div> | ||
<td>#[renderAmount cents c]</td> | ||
<td> | ||
<span>_[MsgBalanceDeposit]#</span> | ||
<span>: #</span> | ||
<a | ||
href="@{DepositR}/#data-row-#{requestIdStr eRequest}" | ||
title="_{MsgViewRequestDetails}" | ||
>\_[MsgRequest] ##[requestIdStr eRequest] | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Tag contents to new line |
||
</a> | ||
</td> | ||
</div> | ||
) | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
import React from 'react'; | ||
|
||
|
||
export default function () { | ||
return ( | ||
<div> | ||
<td>#[renderAmount cents c]#</td> | ||
<td> | ||
<span>_[MsgOrderCancellation]#</span> | ||
<span>: #</span> | ||
<a | ||
href="@{ClientOrderViewR (exchangeOrderCancellationOrderId ec)}" | ||
title="_{MsgViewOrderDetails}" | ||
>\_[MsgOrder] ##[requestIdStr eRequest] | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Newline |
||
</a> | ||
</td> | ||
</div> | ||
) | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
import React from 'react'; | ||
|
||
|
||
export default function () { | ||
return ( | ||
<div> | ||
<td>#[renderAmount cents c]#</td> | ||
<td> | ||
<span>_[MsgOrderCreated]#</span> | ||
<span>: #</span> | ||
<a | ||
href="@{ClientOrderViewR eid}" | ||
title="_{MsgViewOrderDetails}" | ||
>\_[MsgOrder] ##[requestIdStr eRequest] | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Newline |
||
</a> | ||
</td> | ||
</div> | ||
) | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
import React from 'react'; | ||
|
||
|
||
export default function () { | ||
return ( | ||
<div> | ||
<td>#[renderAmount cents c]#</td> | ||
<td> | ||
<span>_[MsgOrderExecution]#</span> | ||
<span>: #</span> | ||
<a | ||
href="@{ClientOrderViewR (exchangeOrderExecutionOrderId e)}" | ||
title="_{MsgViewOrderDetails}" | ||
>\_[MsgOrder] ##[requestIdStr eRequest] | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Newline |
||
</a> | ||
</td> | ||
</div> | ||
) | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
import React from 'react'; | ||
|
||
|
||
export default function () { | ||
return ( | ||
<div> | ||
<td>#[renderAmount cents c]#</td> | ||
<td> | ||
<span>_[MsgBalanceWithdrawal]#</span> | ||
<span>: #</span> | ||
<a | ||
href="@{WithdrawalR}/#data-row-#{requestIdStr eRequest}" | ||
title="_{MsgViewRequestDetails}" | ||
>\_[MsgRequest] ##[requestIdStr eRequest] | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Newline |
||
</a> | ||
</td> | ||
</div> | ||
) | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
import React from 'react'; | ||
|
||
|
||
export default function () { | ||
return ( | ||
<div> | ||
<td>#[renderAmount cents c]#</td> | ||
<td> | ||
<span>_[MsgBalanceReturn]#</span> | ||
<span>: #</span> | ||
<a | ||
href="@{WithdrawalR}/#data-row-#{requestIdStr eRequest}" | ||
title="_{MsgViewRequestDetails}" | ||
>\_[MsgRequest] ##[requestIdStr eRequest] | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Newline |
||
</a> | ||
</td> | ||
</div> | ||
) | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
import React from 'react'; | ||
|
||
|
||
export default function () { | ||
return ( | ||
<div> | ||
<td>#[renderAmount cents c]#</td> | ||
<td> | ||
<span>_[MsgBalanceReturn]#</span> | ||
<span>: #</span> | ||
<a | ||
href="@{WithdrawalR}/#data-row-#{requestIdStr eRequest}" | ||
title="_{MsgViewRequestDetails}" | ||
>\_[MsgRequest] ##[requestIdStr eRequest] | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Newline |
||
</a> | ||
</td> | ||
</div> | ||
) | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Move
#[sign]#[cents2dblT f]#
to new line