//DATA//
  profile: DB.FindOne(refid, { collection: 'profile' })
  pcdata: DB.FindOne(refid, { collection: 'pcdata' })

-
  const version = [
    14,
    15,
    16,
    17,
    18,
    19,
    20,
    21,
    22,
    23,
    24,
    25,
    26,
    27,
    28,
    29,
    30,
    31
  ];

div
  .card
    .card-header
      p.card-header-title
        span.icon
          i.mdi.mdi-account-edit
        | Profile 
    .card-content
      .field
            label.label Version
            .ver-select
              .control
                .select
                  select(id="version")
                    each i in version
                      option(selected=(i==pcdata.version)) #{i}
      .field
        label.label Name
        .body
          p(id="name") #{profile.name}
      .field
        label.label IIDX ID
        .body
          p(id="iidxid") #{profile.idstr}
      .field
        label.label SP Grade
        .body
        - const a = pcdata.sgid
          if a==-1
            p(id="sp_grade") ----
          else
            p(id="sp_grade") #{pcdata.sgid}
      .field
        label.label DP Grade
        .body
        - const b = pcdata.dgid
          if b==-1
            p(id="dp_grade") ----
          else
            p(id="dp_grade") #{pcdata.dgid}
script(src="static/asset/js/detail.js") 
