Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <tr>
- <td colspan="2" style="text-align: center;">
- <span class="m2_labeltext">@Resources.Common.MyCreditCards:</span>
- </td>
- </tr>
- @if (Model.CreditCardProfiles != null && Model.CreditCardProfiles.Any())
- {
- if (Model.CreditCardProfiles.Count == 1)
- {
- var profile = Model.CreditCardProfiles[0];
- if (profile != null)
- {
- <tr>
- <td colspan="2">
- <div class="cardProfile" style="background-color: white; width:50%; margin: auto;" onclick="ParkerMyProfileIndex.removeCreditCard(@profile.String4Value);">
- <table style="width: 100%;">
- <tr>
- <td style="text-align: center;">
- @if (profile.String3Value == "Visa")
- {
- <img src="~/Include/gfx/Visa.jpg" class="p_creditCardImgSmall" />
- }
- @if (profile.String3Value == "Master Card" || profile.String3Value == "MasterCard")
- {
- <img src="~/Include/gfx/MasterCard.jpg" class="p_creditCardImgSmall" />
- }
- @if (profile.String3Value == "American Express" || profile.String3Value == "AmericanExpress")
- {
- <img src="~/Include/gfx/american_express1.png" class="p_creditCardImgSmall" />
- }
- @if (profile.String3Value == "Diners Club" || profile.String3Value == "DinersClub" || profile.String3Value == "Diner's Club")
- {
- <img src="~/Include/gfx/DinersClubInternational.jpg" class="p_creditCardImgSmall" />
- }
- @if (profile.String3Value == "Discover")
- {
- <img src="~/Include/gfx/Discover.jpg" class="p_creditCardImgSmall" />
- }
- @if (profile.String3Value == "JCB")
- {
- <img src="~/Include/gfx/JCB.jpg" class="p_creditCardImgSmall" />
- }
- </td>
- <td>
- @profile.String2Value.Replace("***", string.Empty)
- </td>
- <td style="text-align: right;">
- <img src="~/Include/gfx/removeCreditCard.png" style="width: 40px;" alt="@textButtonLanguageConfiguration.DefaultRemoveText" />
- </td>
- </tr>
- </table>
- </div>
- </td>
- </tr>
- }
- }
- else
- {
- int limit = 2;
- int l = 0;
- while (l < Model.CreditCardProfiles.Count())
- {
- <tr>
- @for (var j = 1; j <= limit; j++)
- {
- var profile = Model.CreditCardProfiles[l];
- if (profile != null)
- {
- <td>
- <div class="cardProfile" style="background-color: white;" onclick="ParkerMyProfileIndex.removeCreditCard('@profile.String4Value');">
- <table style="width: 100%;">
- <tr>
- <td style="text-align: center;">
- @if (profile.String3Value == "Visa")
- {
- <img src="~/Include/gfx/Visa.jpg" class="p_creditCardImgSmall" />
- }
- @if (profile.String3Value == "Master Card" || profile.String3Value == "MasterCard")
- {
- <img src="~/Include/gfx/MasterCard.jpg" class="p_creditCardImgSmall" />
- }
- @if (profile.String3Value == "American Express" || profile.String3Value == "AmericanExpress")
- {
- <img src="~/Include/gfx/american_express1.png" class="p_creditCardImgSmall" />
- }
- @if (profile.String3Value == "Diners Club" || profile.String3Value == "DinersClub" || profile.String3Value == "Diner's Club")
- {
- <img src="~/Include/gfx/DinersClubInternational.jpg" class="p_creditCardImgSmall" />
- }
- @if (profile.String3Value == "Discover")
- {
- <img src="~/Include/gfx/Discover.jpg" class="p_creditCardImgSmall" />
- }
- @if (profile.String3Value == "JCB")
- {
- <img src="~/Include/gfx/JCB.jpg" class="p_creditCardImgSmall" />
- }
- </td>
- <td>
- @profile.String2Value.Replace("***", string.Empty)
- </td>
- <td style="text-align: right;">
- <img src="~/Include/gfx/removeCreditCard.png" style="width: 40px;" alt="@textButtonLanguageConfiguration.DefaultRemoveText" />
- </td>
- </tr>
- </table>
- </div>
- </td>
- }
- if (++l == limit) { break; }
- if (l == Model.CreditCardProfiles.Count()) { break; }
- }
- </tr>
- }
- }
- }
- @*<tr>
- <td colspan="2">
- <div style="width: 50%; margin: auto;">
- <a href="@Url.Action("Index", "ParkerNewCCProfile", new { id = Model.RequestStringID })">
- @Html.Raw(T2P.Mobi.Controllers.Utils.HtmlItemUtility.CreateButton("m2_button_long", "", @Resources.Common.AddNewCreditCard, "", string.Empty, "color: #363636 !important;"))
- </a>
- </div>
- </td>
- </tr>*@
- <tr>
- <td colspan="2" style="height: 15px;"></td>
- </tr>
- <tr>
- <td colspan="2" style="text-align: center;">
- <span class="m2_labeltext">@Resources.Common.MyLicensePlates:</span>
- </td>
- </tr>
- <tr>
- <td colspan="2">
- <div style="min-width: 250px; max-width: 350px; max-height: 110px; overflow-y: auto;">
- @foreach (var plate in Model.PlatesList)
- {
- <div class="cardProfile" style="background-color: white; display: inline-block; width:40%" onclick="ParkerMyProfileIndex.removePlate('@plate.Id');">
- @plate.plate
- <img src="~/Include/gfx/removeCreditCard.png" style="width: 30px;" alt="@textButtonLanguageConfiguration.DefaultRemoveText" />
- </div>
- }
- </div>
- </td>
- </tr>
- </table>
- </td>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement